textutil

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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