common

package
v0.0.0-...-7144ed9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPackage

func ExtractPackage(fieldType string) string

func HelperFromNormalizedToBasicTypes

func HelperFromNormalizedToBasicTypes(t string) []string

func HelperFromNormalizedToStringNames

func HelperFromNormalizedToStringNames(t string) []string

func KeyPath

func KeyPath(values ...string) string

Types

type CountValues

type CountValues int
const (
	UndefinedValue CountValues = iota
	ZeroValue
	OneValue
	ManyValues
)

type FieldType

type FieldType struct {
	ComposedType string // array ([N]), map (map) or slice ([])
	BaseType     string // base type (e.g. string, int, etc.)
	Size         string // for arrays
}

func HelperFromNormalizedToFieldTypes

func HelperFromNormalizedToFieldTypes(t string) ([]FieldType, error)

func (FieldType) IsGoType

func (ft FieldType) IsGoType() bool

func (FieldType) NormalizeBaseType

func (ft FieldType) NormalizeBaseType() NormalizedBaseType

func (FieldType) ToGenericType

func (ft FieldType) ToGenericType() string

func (FieldType) ToNormalizedString

func (ft FieldType) ToNormalizedString() string

func (FieldType) ToStringName

func (ft FieldType) ToStringName() string

func (FieldType) ToType

func (ft FieldType) ToType() string

type NormalizedBaseType

type NormalizedBaseType int
const (
	InvalidType NormalizedBaseType = iota
	StringType
	BoolType
	IntType
	FloatType
)

func (NormalizedBaseType) String

func (n NormalizedBaseType) String() string

Jump to

Keyboard shortcuts

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