gotils

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README

Gotils

My utility functions in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error)

func LeftPad

func LeftPad(input string, spaces uint) (result string)

LeftPad prefixes X number of spaces to the 'input' string where X = spaces uint

func OrderedKeys

func OrderedKeys[Key ordered, Value any](input map[Key]Value, reverse bool) (keys []Key)

OrderedKeys takes an input map as an argument and returns a slice of keys in ascending order.

func ToTitleCase added in v0.1.0

func ToTitleCase(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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