struct2table

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kind2PbType

func Kind2PbType(k Kind) protowire.Type

func Marshe

func Marshe(obj any)

func NewObject

func NewObject() tree.Provider[*Object]

Types

type Field

type Field struct {
	Key   reflect.Type
	Value reflect.Value
}

type Kind

type Kind uint
const (
	Invalid Kind = iota
	Bool
	Int
	Int8
	Int16
	Int32
	Int64
	Uint
	Uint8
	Uint16
	Uint32
	Uint64
	Uintptr
	Float32
	Float64
	Complex64
	Complex128
	Array
	Chan
	Func
	Interface
	Map
	Pointer
	Slice
	String
	Struct
	UnsafePointer
)

func (Kind) IsValid

func (k Kind) IsValid() bool

func (Kind) String

func (k Kind) String() string

type Object

type Object struct {
	Field

	*tree.Node[*Object]
	// contains filtered or unexported fields
}

type Type

type Type interface {
	reflect.Kind
}

Jump to

Keyboard shortcuts

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