utils

package
v0.0.0-...-67d0b89 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContextPath string
)

Functions

func DecodeToml

func DecodeToml(content []byte, t any)

func FileContent

func FileContent(path string, file os.DirEntry) []byte

func GenerateSumeUp

func GenerateSumeUp(name string, m map[string]string, s string)

func HandleError

func HandleError(err error)

HandleError Handle basically every error with a panic

func RelativeToAbsolute

func RelativeToAbsolute(path string, contextPath string) string

RelativeToAbsolute convert relative path into absolute path

path: the path to convert

contextPath: the contextual path, with a slash (/) at the end

func Scan

func Scan(s *string) error

func StringArrayToString

func StringArrayToString(a []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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