presetfunc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType string
var (
	DataTypeInterface DataType = "Interface"
)

type DataTypeDetail

type DataTypeDetail struct {
	DataType       string
	IsSelector     bool
	IsArray        bool
	IsPointer      bool
	IsMap          bool
	HasOmitempty   bool
	MapKeyDataType string
}

type JsFieldInfo

type JsFieldInfo struct {
	Name string
	DataTypeDetail
}

type JsStructInfo

type JsStructInfo struct {
	Name   string
	Field  []JsFieldInfo
	Extend []string
}

func GoStructToJSConverter

func GoStructToJSConverter(path string, n ast.Node) (resp *JsStructInfo, next bool)

Jump to

Keyboard shortcuts

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