template

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At(qq ...interface{}) *pongo2.Value

func DatabaseGet

func DatabaseGet(key interface{}, defaultValue ...interface{}) interface{}

func DatabasePut

func DatabasePut(key, value interface{}) *int

func FileGetContents

func FileGetContents(filename string) string

func Image

func Image(src string, args ...int) *pongo2.Value

func ParseJson

func ParseJson(jsonBody string) interface{}

func RandomFile

func RandomFile(dirPath string) string

func RandomInt

func RandomInt(input ...interface{}) (int, error)

func RandomLine

func RandomLine(c string) string

func Record

func Record(src string, args ...int) *pongo2.Value

func Sequence

func Sequence(input interface{}) ([]int, error)

func SetDB

func SetDB(newDB *leveldb.DB)

func Sleep

func Sleep(duration interface{}) string

func TagApproveParser

func TagApproveParser(doc *pongo2.Parser, start *pongo2.Token, arguments *pongo2.Parser) (pongo2.INodeTag, *pongo2.Error)

func TagAtSenderParser

func TagAtSenderParser(doc *pongo2.Parser, start *pongo2.Token, arguments *pongo2.Parser) (pongo2.INodeTag, *pongo2.Error)

func TagRandomChoiceParser

func TagRandomChoiceParser(doc *pongo2.Parser, start *pongo2.Token, arguments *pongo2.Parser) (pongo2.INodeTag, *pongo2.Error)

func TagSendParser

func TagSendParser(msgType MessageType) pongo2.TagParser

func TagWithdrawParser

func TagWithdrawParser(doc *pongo2.Parser, start *pongo2.Token, arguments *pongo2.Parser) (pongo2.INodeTag, *pongo2.Error)

Types

type MessageType

type MessageType int
const (
	PrivateMessageType MessageType = iota
	GroupMessageType
)

type StoredValue

type StoredValue struct {
	ValueType ValueType
	IntValue  int
	StrValue  string
}

type ValueType

type ValueType int
const (
	IntValueType ValueType = iota
	StrValueType
)

Jump to

Keyboard shortcuts

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