struc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KeyValueSeparator = ":"
View Source
const ListValuesSeparator = ","
View Source
const ReplaceableValueSeparator = "="

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldName

type FieldName = string

type FieldType

type FieldType struct {
	Embedded       bool
	RefCount       int
	Name, FullName string
	Model          *Model
	Type           types.Type
}

type Model

type Model struct {
	Typ *types.Named

	RefCount int

	OutPkgPath     string
	FieldsTagValue map[FieldName]map[TagName]TagValue
	TagsFieldValue map[TagName]map[FieldName]TagValue
	FieldNames     []FieldName
	FieldsType     map[FieldName]FieldType
	// contains filtered or unexported fields
}

Model struct type model.

func New

func New(outPkgPath string, structType *types.Named) (*Model, error)

New - Model's default constructor.

func (*Model) Package

func (m *Model) Package() *types.Package

func (*Model) TypeName

func (m *Model) TypeName() string

type TagName

type TagName = string

type TagValue

type TagValue = string

Jump to

Keyboard shortcuts

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