template

package
v1.230621.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitAPIFunc added in v1.0.17

func InitAPIFunc(resource *crud.Resource)

func InitEngine added in v1.0.17

func InitEngine(resource *crud.Resource)

func NewStringLoader

func NewStringLoader() jet.Loader

NewLoader returns an initialized loader serving the passed http.FileSystem.

func Render

func Render(collection collection.Collection, fnName string, c *gin.Context) (map[string]interface{}, error)

根据名称进行匹配

func Sort

func Sort(key string, maps []bson.M, desc bool) []bson.M

Types

type MapsSort

type MapsSort struct {
	Key     string
	MapList []bson.M
	Desc    bool
}

排序 start

func (*MapsSort) Len

func (m *MapsSort) Len() int

func (*MapsSort) Less

func (m *MapsSort) Less(i, j int) bool

func (*MapsSort) Swap

func (m *MapsSort) Swap(i, j int)

Jump to

Keyboard shortcuts

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