shared

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTypeValid

func IsTypeValid(vtype string) bool

Types

type Config

type Config struct {
	IntV    map[string]int
	FloatV  map[string]float64
	BoolV   map[string]bool
	StringV map[string]string
	NullV   map[string]string

	IntArrV    map[string][]int
	FloatArrV  map[string][]float64
	BoolArrV   map[string][]bool
	StringArrV map[string][]string

	InnerV    map[string]*Config
	InnerArrV map[string][]*Config
	Name      string
}

func NewNilConfig

func NewNilConfig() *Config

type Contract

type Contract struct {
	Type    ContractType
	BoolV   []string
	IntV    []string
	FloatV  []string
	StringV []string

	BoolArrV   []string
	IntArrV    []string
	FloatArrV  []string
	StringArrV []string

	InnerArrV map[string]*Contract
	Inner     map[string]*Contract
}

func NewNillContract

func NewNillContract() *Contract

type ContractType

type ContractType int
const (
	ContractDynamic ContractType = iota
	ContractFlexible
	ContractStrict
)

func (ContractType) String added in v1.1.0

func (c ContractType) String() string

Jump to

Keyboard shortcuts

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