enter

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "dsds"

Functions

func Get

func Get()

Types

type Inner added in v2.0.9

type Inner[T comparable] struct {
	Key   T
	Value string
}

type MultiParamAligned added in v2.0.9

type MultiParamAligned[T any, U Number] struct {
	First   T
	Second  U
	IsValid bool
}

type MultiParamUnaligned added in v2.0.9

type MultiParamUnaligned[T string, U Number] struct {
	First   T
	Second  U
	IsValid bool
}

type MyTest

type MyTest struct {
	Problem1 struct {
		I interface{}
		S struct{}
	}

	App struct {
		// LogLevel
		LogLevel                  string        `yaml:"log_level" env-default:"info"` // 2 text
		Name                      string        `yaml:"name" env-default:"ms-sso"`
		IsProduction              bool          `yaml:"is_production" env:"IS_PRODUCTION" yaml-default:"true"`
		TimeToConfirmRegistration time.Duration `yaml:"tim_to_confirm_registration" env-required:"24h"`
	} `yaml:"app"`
	// contains filtered or unexported fields
} /* some text
dsdsd
dsds
*/

Test comment

type MyTest2

type MyTest2 struct{}

type MyTest3

type MyTest3 struct {
}

type MyTest4

type MyTest4 struct{} // test

type MyTest5

type MyTest5 struct{} // test

type Number added in v2.0.9

type Number interface {
	int | int32 | int64 | float32 | float64
}

Common types used in the structures above

type OuterAligned added in v2.0.9

type OuterAligned[T any, U comparable] struct {
	Data     T
	Nested   Inner[U]
	Priority int
}

type OuterUnaligned added in v2.0.9

type OuterUnaligned[T any, U comparable] struct {
	Data     T
	Nested   Inner[U]
	Priority int
}

type Problem1

type Problem1 struct{}

type Problem2

type Problem2 struct {
}

type Problem3

type Problem3 struct {
	time.Time
	time.Duration
	time.Location
	// contains filtered or unexported fields
}

type S1 added in v2.0.7

type S1 struct {
	F1 bool
	F2 string
}

type S2 added in v2.0.7

type S2 struct {
	F1, F2 bool
	F3     string
	F4     StructWithGenerics[int]
	F5     StructWithMoreGenerics[int, float64, string]
}

type STR

type STR string

type STRs

type STRs []string

type SimpleGenericAligned added in v2.0.9

type SimpleGenericAligned[T any] struct {
	Value T
	ID    int
	Name  string
}

Aligned Structures

type SimpleGenericUnaligned added in v2.0.9

type SimpleGenericUnaligned[T any] struct {
	Value T
	ID    int
	Name  string
}

Unaligned Structures

type SliceContainerAligned added in v2.0.9

type SliceContainerAligned[T any] struct {
	Items      []T
	TotalCount int
	MaxSize    int64
	IsReadOnly bool
}

type SliceContainerUnaligned added in v2.0.9

type SliceContainerUnaligned[T any] struct {
	Items      []T
	TotalCount int
	MaxSize    int64
	IsReadOnly bool
}

type StructWithGenerics added in v2.0.9

type StructWithGenerics[T any] struct {
	F T
}

type StructWithMoreGenerics added in v2.0.9

type StructWithMoreGenerics[T1, T2 any, T3 comparable] struct {
	F1 T1
	F2 T2
	F3 T3
}

type TreeNodeAligned added in v2.0.9

type TreeNodeAligned[T any] struct {
	Value  T
	Left   *TreeNodeAligned[T]
	Right  *TreeNodeAligned[T]
	Depth  int
	IsLeaf bool
}

type TreeNodeUnaligned added in v2.0.9

type TreeNodeUnaligned[T any] struct {
	Value  T
	Left   *TreeNodeUnaligned[T]
	Right  *TreeNodeUnaligned[T]
	Depth  int
	IsLeaf bool
}

Jump to

Keyboard shortcuts

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