package
Version:
v0.0.0-...-52cbd5f
Opens a new window with list of versions in this module.
Published: Nov 8, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewMyTransformer() *myTransformer
Expose our DataProcessor for clients to use
Filter out users with IDs less than 400
Get the cities for just the UserIDs we received from previous stage
type ReceivedData struct {
ID int `json:"id,omitempty"`
City string `json:"city"`
}
type TransformedData struct {
UserID int `json:"user_id,omitempty"`
City string `json:"city"`
}
type UserID struct {
UserID int `json:"id,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.