Documentation ¶
Index ¶
- func AppendFile(buf bytes.Buffer, pre string) *bytes.Buffer
- func CheckHttpHeader(responseHeader http.Header, domain string, expectHeader map[string]string) bool
- func ConvertToString(targetStrung []byte) string
- func GetFileBufferBySize(size uint64) bytes.Buffer
- func GetNonce(endpoint string, header map[string]string) (*http.Header, string, error)
- func GetParamFromCSV(path string, skipFirstRow bool) [][]string
- func GetRandomAccountName() string
- func GetRandomBucketName() string
- func GetRandomGroupName() string
- func GetRandomObjectName() string
- func GetSizeByString(size string) int64
- func HttpGetWithHeaders(url string, header map[string]string) (*http.Header, string, error)
- func HttpOptionsWithHeaders(url string, header map[string]string) (*http.Response, string, error)
- func HttpPostWithHeaders(url string, jsonStr string, header map[string]string) (*http.Header, string, error)
- func IsContain(items []string, item string) bool
- func OptionsGetNonce(endpoint string, header map[string]string) (*http.Response, string, error)
- func RandHexKey() string
- func RandInt64(min, max int64) int64
- func RandStringWithLong(n int64) string
- func RandomNum(n, scope int) int
- func RandomString(n int) string
- func RandomStringToLower(n int) string
- func RandomStringToUpper(n int) string
- func WriteToCSV(data [][]string, path string) error
- type File
- type ParametersIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHttpHeader ¶
func CheckHttpHeader(responseHeader http.Header, domain string, expectHeader map[string]string) bool
CheckHttpHeader verify http header support cross-origin
func ConvertToString ¶
func GetFileBufferBySize ¶
func GetParamFromCSV ¶
func GetRandomAccountName ¶
func GetRandomAccountName() string
GetRandomAccountName generate random account name
func GetRandomBucketName ¶
func GetRandomBucketName() string
GetRandomBucketName generate random bucket name.
func GetRandomGroupName ¶
func GetRandomGroupName() string
GetRandomGroupName generate random group name.
func GetRandomObjectName ¶
func GetRandomObjectName() string
GetRandomObjectName generate random object name.
func GetSizeByString ¶
func HttpGetWithHeaders ¶
func HttpOptionsWithHeaders ¶
func HttpPostWithHeaders ¶
func OptionsGetNonce ¶
func RandHexKey ¶
func RandHexKey() string
func RandStringWithLong ¶
func RandomString ¶
func RandomStringToLower ¶
func RandomStringToUpper ¶
func WriteToCSV ¶
Types ¶
type ParametersIterator ¶
func NewParametersIterator ¶
func NewParametersIterator(slice interface{}) ParametersIterator
func (*ParametersIterator) Add ¶
func (iter *ParametersIterator) Add(inter interface{})
func (*ParametersIterator) GetParameters ¶
func (iter *ParametersIterator) GetParameters() []interface{}
func (*ParametersIterator) Len ¶
func (iter *ParametersIterator) Len() int
func (*ParametersIterator) Next ¶
func (iter *ParametersIterator) Next() interface{}
func (*ParametersIterator) NextWithOutLoop ¶
func (iter *ParametersIterator) NextWithOutLoop() interface{}
Click to show internal directories.
Click to hide internal directories.