util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMap

func CopyMap[K comparable, V any](m map[K]V) map[K]V

CopyMap copies a map. If the value is a pointer, the pointer is copied, not the value.

func InsertString

func InsertString(s string, insert string, n int) string

InsertString inserts a string into another string at a given index.

func Max

func Max(x, y int) int

func Min

func Min(x, y int) int

func RemoveAnsiReset

func RemoveAnsiReset(s string) string

RemoveAnsiReset removes the first ansi reset code from a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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