mypkg

package
v0.0.0-...-52cbd5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMyTransformer

func NewMyTransformer() *myTransformer

Expose our DataProcessor for clients to use

func Query1

func Query1() string

Filter out users with IDs less than 400

func Query2

func Query2(usersJSON data.JSON) (string, error)

Get the cities for just the UserIDs we received from previous stage

Types

type ReceivedData

type ReceivedData struct {
	ID   int    `json:"id,omitempty"`
	City string `json:"city"`
}

type TransformedData

type TransformedData struct {
	UserID int    `json:"user_id,omitempty"`
	City   string `json:"city"`
}

type UserID

type UserID struct {
	UserID int `json:"id,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL