package
0.3.1
Repository: https://github.com/u2takey/go-utils.git
Documentation: pkg.go.dev

# Functions

BytesToString convert []byte type to string type.
CamelString converts the accepted string to a camel string (xx_yy to XxYy).
CodePointToUTF8 converts Unicode Code Point to UTF-8.
EscapeQualifiedName converts a plugin name, which might contain a / into a string that is safe to use on-disk.
HTMLEntityToUTF8 converts HTML Unicode to UTF-8.
Indent inserts prefix at the beginning of each line.
JoinQualifiedName joins 'namespace' and 'name' and returns a fully qualified name Assumes that the input is valid.
LintCamelString converts the accepted string to a camel string (xx_id to XxID) NOTE: support common initialisms.
NewLineDelimiter allocates a new io.Writer that will split input on lines and bracket each line with the delimiter string.
ShortenString returns the first N slice of a string.
SnakeString converts the accepted string to a snake string (XxYy to xx_yy).
SpaceInOne combines multiple consecutive space characters into one.
SplitQualifiedName Splits a fully qualified name and returns its namespace and name.
StringMarshalJSON converts the string to JSON byte stream.
StringToBytes convert string type to []byte type.
UnescapeQualifiedName converts an escaped plugin name (as per EscapeQualifiedName) back to its normal form.

# Structs

LineDelimiter is a filter that will split input on lines and bracket each line with the delimiter string.