text

package
v0.0.0-...-17d9b22 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUOTE_FUNC_NAME      = "quote"
	EMPTY_FUNC_NAME      = "empty"
	NOT_EMPTY_FUNC_NAME  = "notEmpty"
	OR_DEFAULT_FUNC_NAME = "orDefault"
	OR_EMPTY_FUNC_NAME   = "orEmpty"
	TERNARY_FUNC_NAME    = "ternary"
)

Variables

This section is empty.

Functions

func Empty

func Empty(input any) bool

func Escape

func Escape(value string) string

func EscapeSpecials

func EscapeSpecials(target string) string

func IsDash

func IsDash(character rune) bool

func LineWrap

func LineWrap(s string, length int) string

func NotEmpty

func NotEmpty(input any) bool

func OrDefault

func OrDefault(defaulVal string, input any) any

func OrEmpty

func OrEmpty(input any) any

func Quote

func Quote(input any) string

func RemoveLineEndings

func RemoveLineEndings(value string) string

func Ternary

func Ternary(condition bool, trueOut any, falseOut any) any

Types

This section is empty.

Jump to

Keyboard shortcuts

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