strutils

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyJson added in v0.0.17

func PrettyJson(a any) string

Convert to JSON string with formatting and indentation

If JSON conversion fails, returns "{}"

func Red

func Red(s string) string

Wraps a string in ANSI that makes it red

func SnakeCase

func SnakeCase(text string) string

Converts any case into snake_case

Types

This section is empty.

Jump to

Keyboard shortcuts

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