utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package utils is the common sin of every Go programmer, including functions that seem to be usable everywhere, but do not share the same functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoTitle added in v0.2.0

func NoTitle(s string) string

NoTitle performs the opposite operation of the strings.Title() func. It ensures the first char of the given string is lowercase.

func RandomString

func RandomString(n uint) (string, error)

RandomString generates a random string with len n using the crypto/rand RNG. The returned string contains only chars defined in the randStrChars constant.

Types

This section is empty.

Jump to

Keyboard shortcuts

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