parser

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs(args []string, moduleName string, isPkUuid bool) (GenerateModelInput, []ParsingErrorDetail, bool)

Types

type Attribute

type Attribute struct {
	TransformedText
	Type        string
	IsOptional  bool
	EnumStrings []TransformedText
}

type GenerateModelInput

type GenerateModelInput struct {
	TransformedText
	PackageEntityName string
	ModuleInfo        ModuleInfo
	IdAttribute       Attribute
	Attributes        []Attribute
}

func (GenerateModelInput) ToStringCmd added in v0.21.0

func (c GenerateModelInput) ToStringCmd() string

type ModuleInfo

type ModuleInfo struct {
	Name string
}

type ParsingErrorDetail

type ParsingErrorDetail struct {
	Input string
	Err   string
	Index int
}

func (ParsingErrorDetail) String

func (p ParsingErrorDetail) String() string

type TransformedText

type TransformedText struct {
	SnakeCase        string
	PascalCase       string
	CamelCase        string
	LowerNoSpaceCase string
}

Jump to

Keyboard shortcuts

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