version

package
v0.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHubFromType

func GetHubFromType(t Type) (interfaces.Hub, error)

Types

type Testing

type Testing struct {
	TestingAllFields
	TestingVersions
}

Testing struct

func (Testing) DetectVersion

func (hub Testing) DetectVersion() int

func (*Testing) FillEra

func (hub *Testing) FillEra(era interfaces.Era, version int) error

func (Testing) GetBaseStruct

func (hub Testing) GetBaseStruct() any

func (Testing) GetEraFromVersion

func (hub Testing) GetEraFromVersion(version int) (interfaces.Era, error)

func (Testing) GetMaxVersion

func (hub Testing) GetMaxVersion() int

func (Testing) GetMinVersion

func (hub Testing) GetMinVersion() int

func (Testing) GetVersionStructs

func (hub Testing) GetVersionStructs() []interfaces.Era

GetVersionStructs method for the struct

func (Testing) GetVersions

func (hub Testing) GetVersions() []int

func (Testing) ToEra

func (hub Testing) ToEra(target any) error

type TestingAllFields

type TestingAllFields struct {
	InEveryVersion *string  `json:"in_every_version"`
	OnlyIn1        *int     `json:"only_in_1"`
	From2ToEnd     *uint8   `json:"from_2_to_end"`
	FromStartTo3   *[]byte  `json:"from_start_to_3"`
	From1to4       *float32 `json:"from_1_to_4"`
}

type TestingVersions

type TestingVersions struct {
	V1 testing.V1
	V2 testing.V2
	V3 testing.V3
	V4 testing.V4
}

TestingVersions struct

type Type

type Type string
const (
	TypeTesting Type = "testing"
	TypeUser    Type = "user"
)

type User

type User struct {
	UserAllFields
	UserVersions
}

User struct

func (User) DetectVersion

func (hub User) DetectVersion() int

func (*User) FillEra

func (hub *User) FillEra(era interfaces.Era, version int) error

func (User) GetBaseStruct

func (hub User) GetBaseStruct() any

func (User) GetEraFromVersion

func (hub User) GetEraFromVersion(version int) (interfaces.Era, error)

func (User) GetMaxVersion

func (hub User) GetMaxVersion() int

func (User) GetMinVersion

func (hub User) GetMinVersion() int

func (User) GetVersionStructs

func (hub User) GetVersionStructs() []interfaces.Era

GetVersionStructs method for the struct

func (User) GetVersions

func (hub User) GetVersions() []int

func (User) ToEra

func (hub User) ToEra(target any) error

type UserAllFields

type UserAllFields struct {
	InEveryVersion    *string  `json:"in_every_version"`
	OnlyIn1           *int     `json:"only_in_1"`
	From2ToEnd        *uint8   `json:"from_2_to_end"`
	FromStartTo3      *[]byte  `json:"from_start_to_3"`
	From1to4          *float32 `json:"from_1_to_4"`
	OnlyIn5           *rune    `json:"only_in_5"`
	WorksWithMaps     *map[string]int64
	AndMapsInMaps     *map[string]map[string]int64
	AndSlices         *[]int
	AndPointers       **int
	AndDoublePointers ***int
	AndGenerics       *any
	AndOldGenerics    *any
}

type UserVersions

type UserVersions struct {
	V1 user.V1
	V2 user.V2
	V3 user.V3
	V4 user.V4
	V5 user.V5
}

UserVersions struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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