util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CHA = "abcdefghijklmnopqrstuvwxyz0123456789"

CHA map

Variables

This section is empty.

Functions

func ChooseIndex

func ChooseIndex(maxLen int) int

ChooseIndex return valid index in [0, maxLen)

func RandString

func RandString(n int) string

RandString n is the length. a-z 0-9

func Scanline

func Scanline() string

Scanline scan line

func ScanlineTrim

func ScanlineTrim() string

ScanlineTrim scan line and trim

func YesOrNo added in v0.5.0

func YesOrNo(note string) bool

YesOrNo must choose one

Types

This section is empty.

Jump to

Keyboard shortcuts

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