Documentation ¶
Index ¶
- Variables
- func AddFuncMap(funcName string, funcs interface{})
- func AdminColumns(data map[string]string) string
- func BeegoLi(info []map[string]string) string
- func DirectJson(data ...string) (string, error)
- func EditFormColumns(data map[string]string, dbinfo map[string][]byte) string
- func FormColumns(data map[string]string) string
- func GetRegisterByName(name string) map[string]string
- func GetRegistered() []map[string]string
- func GoutClient(isSkipTls bool) *gout.Client
- func NewCacheCli() *cache.Cache
- func NewGin() *gin.Engine
- func NewLogger() slog.Logger
- func NewOrm() *xorm.Engine
- func Register(data ...interface{}) error
- func RigsterStruct(data interface{}) map[string]string
- type Columns
Constants ¶
This section is empty.
Variables ¶
var FuncMap template.FuncMap = map[string]interface{}{ "beegoli": BeegoLi, "admincolumns": AdminColumns, "formcolumns": FormColumns, "str2html": str2html, }
var (
IsDebugLog bool
)
Functions ¶
func AddFuncMap ¶ added in v0.0.3
func AddFuncMap(funcName string, funcs interface{})
func AdminColumns ¶
func DirectJson ¶
func EditFormColumns ¶
根据查询到的结果映射为对应的form表单及数据
func FormColumns ¶
[map[Tag:name:"ip" search:"false" Name: Id Vpn Name Ip Id_search:"true" Name_search:"false" Ip_name:"ip" Ip_search:"false" Struct:Vpn Type:string Id_name:"id" Vpn_name:"vpn" Vpn_search:"true" Name_name:"name"] map[Name_search:"true" Struct:Machine Type:time.Time Name: Id Sn Mac Ip Name Create Update Sn_name:"sn" Sn_search:"true" Mac_search:"true" Tag:xorm:"updated" Mac_xorm:"mac" Mac_name:"mac" Update_xorm:"updated" Ip_xorm:"ip" Name_name:"name" Create_xorm:"created" Id_name:"id" Id_search:"true" Sn_xorm:"sn" Ip_name:"ip" Ip_search:"true" Name_xorm:"name"] map[Type:string Name: Id Cdn_name Type Type_name:"type" Struct:Cdn Tag:name:"type" search:"false" Cdn_name_name:"cdn_name" Cdn_name_search:"true" Type_search:"false" Id_name:"id" Id_search:"true"]]