tools

package
v0.0.0-...-9897aff Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomString

func GetRandomString(index int, length int) string

*

  • 生成随机字符串
  • index:取随机序列的前index个
  • 0-9:10
  • 0-9a-z:10+24
  • 0-9a-zA-Z:10+24+24
  • length:需要生成随机字符串的长度

func GetURLParams

func GetURLParams(values ...interface{}) string

*

  • 有序(或者无序)地从一个map中按照index的顺序构造URL中的params
  • 加上有序的目的是为了防止有些环境下需要params根据key的ASC大小排序后进行签名加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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