utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In(label string, set []string) bool

func InitFileLogger

func InitFileLogger(file *os.File, flag int, console bool) *log.Logger

func RFindAndReplace

func RFindAndReplace(strData, subStr, newStr string) string

Types

type Context

type Context map[string]interface{}

type FString

type FString struct {
	Data string
	// contains filtered or unexported fields
}

func (*FString) Clear

func (fs *FString) Clear() string

func (*FString) MustCompile

func (fs *FString) MustCompile(expr string, funcMap template.FuncMap)

func (*FString) MustRender

func (fs *FString) MustRender(context Context)

func (*FString) Render

func (fs *FString) Render(context map[string]interface{}) error

func (*FString) Write

func (fs *FString) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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