Documentation ¶
Index ¶
- func FirstLetter(s string) (string, error)
- func Iconv(s string, former transform.Transformer) ([]byte, error)
- func Int(rand io.Reader, min, max *big.Int) (n *big.Int, err error)
- func IsFile(path string) bool
- func MtRand(min, max int64) (int64, error)
- func Ord(s string) int
- func OrdByte(b byte) int
- func OrdRune(r rune) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstLetter ¶
FirstLetter returns the uppercase first letter of a rune no changes should be made if there is no suitable code
func Iconv ¶
func Iconv(s string, former transform.Transformer) ([]byte, error)
Iconv transform rune by former
e.g: `simplifiedchinese.GBK.NewEncoder()` and `simplifiedchinese.GBK.NewDecoder()`
func Int ¶
Int returns a uniform random value in [min, max). It panics if max <= min. Ref crypto/rand
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.