Documentation ¶
Index ¶
- Variables
- type File
- type Misc
- func (misc *Misc) FormatUnixTime(unixTime int64) string
- func (misc *Misc) HttpGet(queryUrl string, queryValues map[string]string, headerValues map[string]string, ...) (body string, code int, err error)
- func (misc *Misc) HttpPost(queryUrl string, queryValues map[string]string, headerValues map[string]string, ...) (body string, code int, err error)
- func (misc *Misc) MapIntersect(defaultMap map[string]interface{}, inputMap map[string]interface{}) map[string]interface{}
- func (m *Misc) RandString(strlen int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var UtilFile = NewFile()
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { }
func (*File) GetFileLines ¶
get file lines params : filename return : fileLine, error
type Misc ¶
type Misc struct { }
func (*Misc) HttpGet ¶
func (misc *Misc) HttpGet(queryUrl string, queryValues map[string]string, headerValues map[string]string, timeout int) (body string, code int, err error)
http get request
func (*Misc) HttpPost ¶
func (misc *Misc) HttpPost(queryUrl string, queryValues map[string]string, headerValues map[string]string, timeout int) (body string, code int, err error)
http post request
Click to show internal directories.
Click to hide internal directories.