strutil

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountLines

func CountLines(bs []byte) int

CountLines counts the number of lines in the given byte slice.

func Default

func Default(s, def string) string

Default returns s if s is not empty, and returns def if is is.

func MakeSet

func MakeSet(lst []string) map[string]bool

MakeSet converts a list of strings to a set of strings.

func SortedList

func SortedList(set map[string]bool) []string

SortedList returns the sorted list of a set of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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