lib

package
v0.0.0-...-fafbf5e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateImageFile

func CreateImageFile(path string, image image.Image)

func Criticalf

func Criticalf(format string, a ...any)

func Debugf

func Debugf(isDebug bool, format string, a ...any)

func Domain2Url

func Domain2Url(domain string, isReverseProxyed bool, isHttps bool, port string) string

func Error

func Error(err error)

func ErrorExit

func ErrorExit(err error)

func ImageCreate

func ImageCreate(text string, isDebug bool, options *ImageCreateOptions) (image.Image, error)

func ImageSynthetic

func ImageSynthetic(charImage image.Image) image.Image

func Infof

func Infof(format string, a ...any)

func Intialize

func Intialize()

func RandomString

func RandomString(num int) string

func RemoveFiles

func RemoveFiles(dir string) error

func SplitCharText

func SplitCharText(text string, char string) ([]string, int)

Turn array and index

func SplitText

func SplitText(text string, splitlen int) ([]string, int)

Turn array and index

func Version

func Version() string

func Warnf

func Warnf(format string, a ...any)

Types

type ImageCreateOptions

type ImageCreateOptions struct {
	Font *string
}

Jump to

Keyboard shortcuts

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