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

View Source
const (
	Query1Helper = "query1"
	Query2Helper = "query2"
)

Variables

This section is empty.

Functions

func NewMyTransformer

func NewMyTransformer() *myTransformer

Expose our DataProcessor for clients to use

func Query1

func Query1() string

func Query2

func Query2() string

Types

type ReceivedData1

type ReceivedData1 struct {
	TypeHelper string `json:"type_helper,omitempty"`
	ID         int    `json:"id,omitempty"`
	Name       string `json:"name,omitempty"`
}

type ReceivedData2

type ReceivedData2 struct {
	TypeHelper string `json:"type_helper,omitempty"`
	ID         int    `json:"id,omitempty"`
	City       string `json:"city,omitempty"`
	State      string `json:"state,omitempty"`
}

type TransformedData

type TransformedData struct {
	UserID int    `json:"user_id"`
	Name   string `json:"name"`
	City   string `json:"city"`
}

Jump to

Keyboard shortcuts

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