stringutils

package
v0.0.0-...-ffea4ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBetween

func FindBetween(s, st, et string, sp int) string

func In

func In(i bool, t string, args ...string) bool

func RandomString

func RandomString(n int) string

func ReplaceBetween

func ReplaceBetween(s *string, t, st, et string)

ReplaceBetween will replace occurances of t with st (StartTag) and et (EndTag)

Types

type TitledString

type TitledString string

TitledString is a Stringer interface implementation, which replaces the characters - and _ by a space and capitalizes the first letter of the string Returns a string

func (TitledString) String

func (str TitledString) String() string

Jump to

Keyboard shortcuts

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