examples

package module
v0.0.0-...-5c1bd3a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalStruct

type InternalStruct struct {
	Foo  string
	Time time.Time
	File fs.File
}

type Struct

type Struct struct {
	String       string
	StringPtr    *string
	StringPtrPtr **string

	Ignore       string
	Int          int
	IntPtr       *int
	Float        float64
	FloatPtr     *float64
	Slice        []string
	SliceOfPtrs  []*string
	SlicePtr     *[]string
	Array        [3]string
	ArrayOfPtrs  [3]*string
	ArrayPtr     *[3]string
	Map          map[string]int
	MapOfPtrs    *map[string]*int
	MapPtr       *map[string]int
	Time         time.Time
	TimePtr      *time.Time
	Any          any
	AnyPtr       *any
	Interface    interface{}
	InterfacePtr *interface{}
	Struct       struct {
		Foo string
		Bar int
	}
	StructPtr *struct {
		Foo string
		Bar int
		Baz foo.OtherStruct
	}
	FuncPtr                            *func()
	FieldData                          foo.OtherStruct
	FieldDataPtr                       *foo.OtherStruct
	FieldDataPtrSlicePtr               *[]*foo.OtherStruct
	UniqueMultiFlag                    baz.OtherGenericStruct[any]
	UniqueMultiFlagPtr                 *baz.OtherGenericStruct[any]
	UniqueMultiFlagPtrSlicePtr         *[]*baz.OtherGenericStruct[any]
	UniqueMultiFlagWithType            baz.OtherGenericStruct[*foo.OtherStruct]
	UniqueMultiFlagWithTypePtr         *baz.OtherGenericStruct[*foo.OtherStruct]
	UniqueMultiFlagWithTypePtrSlicePtr *[]*baz.OtherGenericStruct[*foo.OtherStruct]
	Uuid                               uuid.UUID
	UuidPtr                            *uuid.UUID
	UuidPtrSlicePtr                    *[]*uuid.UUID
	UuidPtrArrayPtr                    *[3]*uuid.UUID
	Yaml                               yaml.Decoder
	YamlPtr                            *yaml.Decoder
	YamlPtrSlicePtr                    *[]*yaml.Decoder
	YamlPtrArrayPtr                    *[3]*yaml.Decoder
	InternalStruct                     InternalStruct
	InternalStructPtr                  *InternalStruct
	Err                                error
	ErrPtr                             *error
	BytesBuffer                        Buffer
	BytesBufferPtr                     *Buffer
	Func                               func()
	FuncWithArgs                       func(string, *string, *[]*baz.OtherGenericStruct[any], *[3]*baz.OtherGenericStruct[*foo.OtherStruct]) (*[]*baz.OtherGenericStruct[any], *[3]*baz.OtherGenericStruct[*foo.OtherStruct], error)
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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