types

package
v0.0.0-...-207416a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomArray

type CustomArray []int

Super custom array

type M

type M struct {
	// body comment
	Username string `json:"Username2"` // field doc
}

Hello

type T

type T struct {
	W WeekDay `json:"weekday"` // field level comment
	// kek
	W2 WeekDay2 `json:"weekday2"` // kek
	W3 WeekDay3 `json:"weekday3"`
}

struct level comment

type User

type User struct {
	M
	NestedStruct struct {
		UserTag
	}
	CustomArray *CustomArray `json:"k"`
	FirstName   *string      `json:"firstname"`
	SecondName  string       `json:"secondName"` // hello
	Tags        []UserTag    `json:"tags"`       // dima
}

user

type UserTag

type UserTag struct {
	Tag string `json:"tag"`
}

type WeekDay

type WeekDay int

WeekDay can be converted to string.

const (
	SUNDAY WeekDay = 1
	MONDAY WeekDay = 2
)

func (WeekDay) String

func (e WeekDay) String() string

type WeekDay2

type WeekDay2 string

helllo this is week day

const (
	A  WeekDay2 = "3"
	A2 WeekDay2 = "4"
)

type WeekDay3

type WeekDay3 int

WeekDay3 has no String method.

const (
	TUESDAY   WeekDay3 = 5
	WEDNESDAY WeekDay3 = 6
)

Jump to

Keyboard shortcuts

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