field

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name string) *boolBuilder

func Bytes

func Bytes(name string) *bytesBuilder

func Int16

func Int16(name string) *int16Builder

func Int32

func Int32(name string) *int32Builder

func Int64

func Int64(name string) *int64Builder

func Int8

func Int8(name string) *int8Builder

func String

func String(name string) *stringBuilder

func Time

func Time(name string) *timeBuilder

func UUID

func UUID(name string) *uuidBuilder

func Uint16

func Uint16(name string) *uint16Builder

func Uint32

func Uint32(name string) *uint32Builder

func Uint64

func Uint64(name string) *uint64Builder

func Uint8

func Uint8(name string) *uint8Builder

Types

type Comment

type Comment string

func (Comment) ForType

func (s Comment) ForType() string

type Descriptor

type Descriptor struct {
	Name string
	Type types.Type

	Sensitive bool
	Annotate  string
	Comment   Comment
	Private   bool

	Default      bool
	DefaultValue interface{}

	Getter bool
	Setter bool

	Validators []validator

	ModelStringer bool
}

func (*Descriptor) GetAnnotate

func (d *Descriptor) GetAnnotate() string

type Field

type Field interface {
	Descriptor() *Descriptor
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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