textutil

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeJoin added in v0.12.0

func EscapeJoin(elems []string, sep string) string

EscapeJoin acts like strings.Join, except it first escapes elements via net/url

func ExecuteTemplate added in v0.11.0

func ExecuteTemplate(tmpl *template.Template, data interface{}) (string, error)

ExecuteTemplate executes the given text template with the given data, and returns the resulting string.

func RandomHash

func RandomHash() string

RandomHash returns a 64 hex character random string

func SplitDelimitedList

func SplitDelimitedList(s string) (list []string)

SplitDelimitedList splits a given string by comma, semi-colon or space, and returns non-empty strings

func SplitUnescape added in v0.12.0

func SplitUnescape(s string, sep string) ([]string, error)

SplitUnescape acts like strings.Split, except it then unescapes tokens via net/url

Types

This section is empty.

Jump to

Keyboard shortcuts

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