atom

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MODName = "github.com/jtao539/autocode/template"
View Source
const TPL = ".tpl"

Variables

This section is empty.

Functions

func Camel2Case added in v1.0.19

func Camel2Case(name string) string

func Case2Camel

func Case2Camel(name string) string

Case2Camel 下划线写法转为大驼峰写法

func Case2SmallCamel

func Case2SmallCamel(name string) string

func LowFirst

func LowFirst(str string) string

LowFirst 首字母小写

func MkDir added in v0.2.10

func MkDir(path, fileName string)

func PathExists

func PathExists(path string) (bool, error)

Types

type Atom

type Atom struct {
	Name    string
	TblName string
	Path    string
	ModName string
	Version string
}

func (*Atom) Clear

func (a *Atom) Clear()

func (*Atom) CreateApi added in v1.0.13

func (a *Atom) CreateApi()

func (*Atom) CreateApiFile

func (a *Atom) CreateApiFile()

func (*Atom) CreateConfig added in v1.0.16

func (a *Atom) CreateConfig()

func (*Atom) CreateDB added in v1.0.13

func (a *Atom) CreateDB()

func (*Atom) CreateError added in v0.2.10

func (a *Atom) CreateError()

func (*Atom) CreateJson added in v1.0.13

func (a *Atom) CreateJson()

func (*Atom) CreateModel

func (a *Atom) CreateModel()

func (*Atom) CreateRResponse added in v0.2.10

func (a *Atom) CreateRResponse()

func (*Atom) CreateRequest added in v0.2.10

func (a *Atom) CreateRequest()

func (*Atom) CreateResponse added in v0.2.10

func (a *Atom) CreateResponse()

func (*Atom) CreateRouter added in v1.0.13

func (a *Atom) CreateRouter()

func (*Atom) CreateService added in v1.0.13

func (a *Atom) CreateService()

func (*Atom) CreateUtil added in v1.0.20

func (a *Atom) CreateUtil()

func (*Atom) CreateZLog added in v1.0.20

func (a *Atom) CreateZLog()

func (*Atom) GeneralAutoCode

func (a *Atom) GeneralAutoCode()

func (*Atom) InitTemplate added in v1.0.13

func (a *Atom) InitTemplate()

func (*Atom) MkSomeDir added in v0.2.10

func (a *Atom) MkSomeDir()

type Buffer added in v1.0.19

type Buffer struct {
	*bytes.Buffer
}

func NewBuffer added in v1.0.19

func NewBuffer() *Buffer

func (*Buffer) Append added in v1.0.19

func (b *Buffer) Append(i interface{}) *Buffer

type Model

type Model struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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