utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeWorkingDir added in v1.0.4

func ChangeWorkingDir(dir string)

func ConfigureZeroLog added in v1.0.3

func ConfigureZeroLog(level string)

func ContainsRune

func ContainsRune(s []rune, e rune) bool

func ContainsString

func ContainsString(s []string, e string) bool

func ContainsStringPartial

func ContainsStringPartial(s []string, e string) bool

func GetFilePathComponents added in v1.0.4

func GetFilePathComponents(name string) (string, string, string)

func PrettyPrint

func PrettyPrint(i interface{}) string

func SetJson

func SetJson(parentObj *gabs.Container, childObj *gabs.Container, key string) *gabs.Container

func UnicodeCategory

func UnicodeCategory(r rune) string

UnicodeCategory returns the Unicode Character Category of the given rune.

Types

type ParseError

type ParseError struct {
	Pos     int
	LineNum int
	// contains filtered or unexported fields
}

func NewParseError

func NewParseError(pos int, line int, msg string, args []string) *ParseError

func (ParseError) Error

func (p ParseError) Error() string

Jump to

Keyboard shortcuts

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