utils

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinMaxIndex

func MinMaxIndex(index int, max int) int

func SplitLines

func SplitLines(str string) []string

SplitLines splits a string into a slice of lines. It handles both "\n" and "\r\n" line endings. If the string doesn't end with a newline, the last line is still appended to the result.

func StrLength

func StrLength(str string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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