Help us shape the future of Go! Take the 2026 Go Developer Survey

stringutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountLeadingSpaces

func CountLeadingSpaces(line string) int

CountLeadingSpaces returns the number of leading spaces in a line.

func HasTrailingWhitespace

func HasTrailingWhitespace(line string) bool

HasTrailingWhitespace checks if a line ends with spaces or tabs.

func IsBlankOrComment

func IsBlankOrComment(line string) bool

IsBlankOrComment checks if a line is blank or a YAML comment.

func IsComment

func IsComment(line string) bool

IsComment checks if a line is a YAML comment (starts with #).

func IsCrypticName

func IsCrypticName(name string) bool

IsCrypticName checks if a name looks cryptic (e.g., job1, j1, abc).

Types

This section is empty.

Jump to

Keyboard shortcuts

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