Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJson ¶
func ToJson(exampleModel *ExampleModel) []byte
ToJson returns the marsalled json bytes for an ExampleModel
Types ¶
type ExampleModel ¶
type ExampleModel struct {
Attr1 string `json:"attr1"`
Attr2 string `json:"attr2"`
Attr3 string `json:"attr3"`
Attr4 int `json:"attr4"`
}
func NewExampleModel ¶
func NewExampleModel(data []string) *ExampleModel
NewExampleModel returns a new ExampleModel
func (*ExampleModel) Transform ¶
func (exampleModel *ExampleModel) Transform()
Transform transforms each attribute of an ExampleModel to uppercase
Click to show internal directories.
Click to hide internal directories.