cueutil

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package cueutil GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToJSONSchema

func ConvertToJSONSchema(typeDef []byte) ([]byte, error)

func Encode

func Encode(v any) ([]byte, error)

func EncodeType

func EncodeType(v any) ([]byte, error)

func FieldIter

func FieldIter(ctx context.Context, t reflect.Type) <-chan Field

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

type Field

type Field struct {
	Name      string
	Omitempty bool
	Tags      map[string][]string
	Type      reflect.Type
	Loc       []int
}

func (*Field) From

func (f *Field) From(v reflect.Value) (reflect.Value, bool)

func (Field) RuntimeDoc

func (v Field) RuntimeDoc(names ...string) ([]string, bool)

type Map

type Map[K any, V any] struct {
	// contains filtered or unexported fields
}

func (*Map[K, V]) Load

func (f *Map[K, V]) Load(k K) (V, bool)

func (*Map[K, V]) Store

func (f *Map[K, V]) Store(k K, v V)

Jump to

Keyboard shortcuts

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