models

package
v0.0.0-...-620078d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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