stringx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringRange

func StringRange(min, max int, opts ...Option) (s string, err error)

随机生成一个字符串, 范围在[min, max]之间

Types

type Option added in v0.0.5

type Option func(*Options)

func WithLower added in v0.0.5

func WithLower() Option

func WithSource added in v0.0.5

func WithSource(s []string) Option

设置数据来源

func WithUpper added in v0.0.5

func WithUpper() Option

type Options added in v0.0.5

type Options struct {
	Source []string
	// 大写
	ToUpper bool
	// 小写
	ToLower bool
}

Jump to

Keyboard shortcuts

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