examples

package
v0.0.0-...-e56ea29 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func (Account) ID

func (a Account) ID() int64

func (Account) Name

func (a Account) Name() string

type Bar

type Bar struct {
	// contains filtered or unexported fields
}

func (Bar) Foo

func (b Bar) Foo() Foo

func (Bar) Version

func (b Bar) Version() int64

type Buzz

type Buzz struct {
	Name string
	Age  int64
}

type Fizz

type Fizz struct {
	Remarks *string
	Ignore  *string `get:"-"`
	// contains filtered or unexported fields
}

func (Fizz) GetNestedBar

func (f Fizz) GetNestedBar() *Bar

type Foo

type Foo struct {
	// contains filtered or unexported fields
}

Foo is an example struct.

func (Foo) Alias

func (f Foo) Alias() FooType

func (Foo) AliasPtr

func (f Foo) AliasPtr() *FooType

func (Foo) B

func (f Foo) B() bool

func (Foo) BoolByString

func (f Foo) BoolByString() map[string]bool

func (Foo) BoolPtr

func (f Foo) BoolPtr() *bool

func (Foo) BoolsByString

func (f Foo) BoolsByString() map[string][]bool

func (Foo) BuzzItAge

func (f Foo) BuzzItAge() int64

func (Foo) BuzzItName

func (f Foo) BuzzItName() string

func (Foo) FooTypePtrsByString

func (f Foo) FooTypePtrsByString() map[string][]*FooType

func (Foo) FooTypesByString

func (f Foo) FooTypesByString() map[string][]FooType

func (Foo) I

func (f Foo) I() int

func (Foo) I32

func (f Foo) I32() int32

func (Foo) I64

func (f Foo) I64() int64

func (Foo) Imported

func (f Foo) Imported() sql.NullString

func (Foo) IntPtr

func (f Foo) IntPtr() *int

func (Foo) NestedBar

func (f Foo) NestedBar() *Bar

func (Foo) Remarks

func (f Foo) Remarks() *string

func (Foo) SliceBool

func (f Foo) SliceBool() []bool

func (Foo) SliceBoolFoo

func (f Foo) SliceBoolFoo() []Foo

func (Foo) SliceBoolFoop

func (f Foo) SliceBoolFoop() []*Foo

func (Foo) SliceBoolp

func (f Foo) SliceBoolp() []*bool

func (Foo) SliceInt

func (f Foo) SliceInt() []int

func (Foo) SliceIntp

func (f Foo) SliceIntp() []*int

func (Foo) SliceStr

func (f Foo) SliceStr() []string

func (Foo) SliceStrp

func (f Foo) SliceStrp() []*string

func (Foo) StrPtr

func (f Foo) StrPtr() *string

func (Foo) String

func (f Foo) String() string

func (Foo) StringByFooType

func (f Foo) StringByFooType() map[FooType]string

func (Foo) StringByPtrFooType

func (f Foo) StringByPtrFooType() map[*FooType]string

type FooType

type FooType int64

type GlobalPrefix

type GlobalPrefix struct {
	// contains filtered or unexported fields
}

func (GlobalPrefix) GetAge

func (g GlobalPrefix) GetAge() int

func (GlobalPrefix) GetName

func (g GlobalPrefix) GetName() string

type IgnoreField

type IgnoreField struct {
	// contains filtered or unexported fields
}

func (IgnoreField) Age

func (i IgnoreField) Age() int

type Imported

type Imported struct {
	// contains filtered or unexported fields
}

func (Imported) Extra

func (i Imported) Extra() json.RawMessage

func (Imported) ID

func (i Imported) ID() uuid.UUID

type InlineChildren

type InlineChildren struct {
	// May contain exported field.
	Name string
	// contains filtered or unexported fields
}

type InlineParent

type InlineParent struct {
	InlineChildren `get:",inline"`
}

func (InlineParent) Age

func (i InlineParent) Age() int64

func (InlineParent) Name

func (i InlineParent) Name() string

type InlinePrefixChild

type InlinePrefixChild struct {
	// May contain exported field.
	Name string
	// contains filtered or unexported fields
}

type InlinePrefixParent

type InlinePrefixParent struct {
	InlineChildren `get:",inline,Inline"`
}

func (InlinePrefixParent) InlineAge

func (i InlinePrefixParent) InlineAge() int64

func (InlinePrefixParent) InlineName

func (i InlinePrefixParent) InlineName() string

type Nested

type Nested struct {
	// contains filtered or unexported fields
}

func (Nested) Name

func (n Nested) Name() string

type RenameField

type RenameField struct {
	// contains filtered or unexported fields
}

func (RenameField) Age

func (r RenameField) Age() int

func (RenameField) RealName

func (r RenameField) RealName() string

type TestWalk

type TestWalk struct {
	// contains filtered or unexported fields
}

func (TestWalk) Age

func (t TestWalk) Age() int

func (TestWalk) M1

func (t TestWalk) M1() map[string][]*Nested

func (TestWalk) M2

func (t TestWalk) M2() map[string][][int64(3)]*map[string]*Nested

func (TestWalk) M3

func (t TestWalk) M3() *Nested

func (TestWalk) M4

func (t TestWalk) M4() [int64(100)]map[*Nested][]*map[*string]*Nested

func (TestWalk) Name

func (t TestWalk) Name() string

func (TestWalk) Nested

func (t TestWalk) Nested() [int64(3)]Nested

type User

type User struct {
	// contains filtered or unexported fields
}

func (User) AccountID

func (u User) AccountID() int64

func (User) AccountName

func (u User) AccountName() string

func (User) FullName

func (u User) FullName() string

func (User) ID

func (u User) ID() uuid.UUID

Jump to

Keyboard shortcuts

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