strutil

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

README

String utils for golang

Build Status Coverage Status Go.Dev reference Go Report Card Release

$ go get -u clevergo.tech/strutil

Functions

  • InitialToLower: converts initial to lower case, similar to PHP's lcfirst.
  • InitialToUpper: converts initial to upper case, similar to PHP's ucfirst.
  • Random, RandomSet: generates fixed length random string.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialToLower

func InitialToLower(s string) string

InitialToLower converts initial to lower.

func InitialToUpper

func InitialToUpper(s string) string

InitialToUpper converts initial to upper.

func Random

func Random(length int) string

Random generates a fixed length random string from the default random set.

func RandomSet

func RandomSet(length int, set string) string

RandomSet generates a fixed length random string from the given set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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