datatypes

package
v0.0.0-...-61fafc7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Int8   = &Type{Name: "i8", TypeName: "i8"}
	UInt8  = &Type{Name: "u8", TypeName: "u8"}
	Int16  = &Type{Name: "i16", TypeName: "i16"}
	UInt16 = &Type{Name: "u16", TypeName: "u16"}
	Int32  = &Type{Name: "i32", TypeName: "i32"}
	UInt32 = &Type{Name: "u32", TypeName: "u32"}

	Int64  = &Type{Name: "i64", TypeName: "i64"}
	UInt64 = &Type{Name: "u64", TypeName: "u64"}
)

Functions

This section is empty.

Types

type Container

type Container struct {
	Name   string
	Fields []*ContainerField
}

func (*Container) ReadJSON

func (cf *Container) ReadJSON(d gjson.Result) error

type ContainerField

type ContainerField struct {
	Name string
	Type *Type
}

type Type

type Type struct {
	Name     string
	TypeName string

	Extras any
}

func GetNativeType

func GetNativeType(name string) *Type

func GetType

func GetType(name string, d gjson.Result) *Type

func GetTypeFromJSON

func GetTypeFromJSON(name string, option gjson.Result) *Type

Jump to

Keyboard shortcuts

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