render

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToString added in v0.3.1

func ByteToString(b []byte) string

func Exec added in v0.3.1

func Exec(cli string) (map[string]interface{}, error)

func ExecTemplate added in v0.3.1

func ExecTemplate(t *templatex.Template) func(name string, v any) (string, error)

func FNV32a added in v0.3.1

func FNV32a(v any) (int, error)

FNV32a hashes v using fnv32a algorithm.

func FuncMap

func FuncMap(trust bool) func(t *templatex.Template) map[string]interface{}

func GetData added in v0.3.1

func GetData(key string, data map[string]interface{}) interface{}

func GetHold added in v0.3.1

func GetHold() map[string]interface{}

func HMAC added in v0.3.1

func HMAC(h interface{}, k interface{}, m interface{}) (string, error)

func Hold added in v0.3.1

func Hold(key string, value interface{}) map[string]interface{}

func IndentByte added in v0.3.1

func IndentByte(i int, data []byte) []byte

func Log added in v0.3.1

func Log(level string, v any) any

func MD5 added in v0.3.1

func MD5(v any) (string, error)

func Md added in v0.3.1

func Md(data []byte) []byte

func Minify added in v0.3.1

func Minify(mType string, data []byte) ([]byte, error)

func Nothing added in v0.3.1

func Nothing(v any) string

func ReadFile added in v0.3.1

func ReadFile(fileName string) ([]byte, error)

func Rfc3339 added in v0.3.1

func Rfc3339(t time.Time) string

func SHA1 added in v0.3.1

func SHA1(v any) (string, error)

SHA1 hashes v and returns its SHA1 checksum.

func SHA256 added in v0.3.1

func SHA256(v any) (string, error)

SHA256 hashes v and returns its SHA256 checksum.

func SaveFile added in v0.3.1

func SaveFile(fileName string, data []byte) (bool, error)

func StringToByte added in v0.3.1

func StringToByte(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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