core

package
v0.0.0-...-be8d9e5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagBind = "binding"
)

Variables

This section is empty.

Functions

func Lookup

func Lookup(tag, key string) (value string, ok bool)

func LookupMap

func LookupMap(tag string) map[string]string

func ParseTag

func ParseTag(tag string) map[string]string

读取tag

Types

type Dom

type Dom struct {
	Name        string //struct name
	HName       string //网页名
	HPagination bool   // 是否分页
	HasSearch   bool   // 是否支持搜索
	Fields      []Field
}

type Field

type Field struct {
	HSort   int16
	Name    string
	Tag     []string
	Type    string
	HName   string
	HType   string //text;radio([{"label":"label","value":"value"}]);checkbox([{"label":"label","value":"value"}]);textarea;html;img;select(name)|select({"k1":"v1","k2":"v2"} );
	HSearch string //like;select
}

func (*Field) FindTagVal

func (f *Field) FindTagVal(tag, attribute string) string

type Group

type Group struct {
	Name string // filename
	List []*Dom
}

func ParseFile

func ParseFile(filename string) *Group

func ParsePath

func ParsePath(dir string) []*Group

Jump to

Keyboard shortcuts

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