options

package
v0.0.0-...-c0f101b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigCamelToSmallCamel

func BigCamelToSmallCamel(bigCamel string) string

BigCamelToSmallCamel 大驼峰格式的字符串转小驼峰格式的字符串 UserAgent → userAgent

func CamelToSnake

func CamelToSnake(camelCase string) string

func LowerFirst

func LowerFirst(s string) string

Types

type FieldInfo

type FieldInfo struct {
	Name string
	Type string
}

type Generator

type Generator struct {
	StructInfo *StructInfo

	Found bool
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) GenerateCodeByTemplate

func (g *Generator) GenerateCodeByTemplate()

func (*Generator) GeneratingOptions

func (g *Generator) GeneratingOptions()

func (*Generator) OutputToFile

func (g *Generator) OutputToFile()

func (*Generator) SetOutPath

func (g *Generator) SetOutPath(outPath *string)

type StructInfo

type StructInfo struct {
	PackageName    string
	StructName     string
	NewStructName  string
	Fields         []FieldInfo
	OptionalFields []FieldInfo
}

Jump to

Keyboard shortcuts

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