gen

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name        string
	Index       int
	BasePackage string
	Fields      []*Field
}

type Components

type Components struct {
	Components []*Component
}

type Field

type Field struct {
	ComponentName  string
	ComponentIndex int
	BasePackage    string
	Package        string
	Name           string
	Index          int
	ServerMessage  bool
	Action10       string //action 10进制
	Action16       string //action 16进制
}

type Gen

type Gen struct {
	Home string
	// contains filtered or unexported fields
}

func NewGen

func NewGen(proto string, basePackage string) (*Gen, error)

func (*Gen) Generate

func (g *Gen) Generate() error

type Init

type Init struct {
	PackageName string
	Home        string
}

func NewInit

func NewInit(name string) *Init

func (*Init) Generate

func (g *Init) Generate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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