util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitString

func SplitString(input string, separator string) []string

In Go as in all languages I'm aware of with a string-split, "a,b,c" splits on "," to ["a", "b", "c" and "a" splits to ["a"], both of which are fine -- but "" splits to [""] when I wish it were []. This function does the latter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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