strutil

package
v3.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Levenshtein

func Levenshtein(a, b string) int

Levenshtein returns the edit distance between two strings.

func SplitCSV

func SplitCSV(raw string) []string

SplitCSV splits a comma-separated value, trimming whitespace around each entry and dropping empty ones (so both "foo,bar" and "foo, bar" work).

func Stringify

func Stringify(v any) string

Stringify renders a value for display, avoiding Go's default scientific notation for large/small float64 values (e.g. API numbers decoded from JSON).

Types

This section is empty.

Jump to

Keyboard shortcuts

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