util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexAll

func IndexAll(s, substr string) []int

func IsFileOrFolder

func IsFileOrFolder(path string) bool

func SplitEscapedLines

func SplitEscapedLines(data string) []string

Split a string into lines. Respects escaped newlines, combining both lines into one.

func SplitWords

func SplitWords(data string) []string

Split words, using space as default delimiter. Treats quoted text as one word and keeps the quotation marks in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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