utils

package module
v0.0.0-...-66fcadd Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 14 Imported by: 0

README

go-utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, item string) bool

func File_append_contents

func File_append_contents(filename string, text string)

func File_get_lines

func File_get_lines(path string) ([]string, error)

func File_put_contents

func File_put_contents(filename string, text string)

func FindLine

func FindLine(filename string, tofind string) (string, error)

func Fs_exists

func Fs_exists(filename string) bool

func HttpDownloadFile

func HttpDownloadFile(url string, filepath string, client *http.Client) error

func HttpGet

func HttpGet(url string, client *http.Client) string

func HttpGetDump

func HttpGetDump(url string, client *http.Client, file string) (string, string)

func HttpHead

func HttpHead(url string, client *http.Client) int

func HttpPost

func HttpPost(url string, data url.Values, client *http.Client) string

func HttpPostJSON

func HttpPostJSON(url string, data string, referer_optional string, client *http.Client, isAjax bool) string

func HttpPostString

func HttpPostString(url string, data string, referer_optional string, client *http.Client, isAjax bool) string

func HttpPostStringToken

func HttpPostStringToken(url string, data string, referer_optional string, token string, client *http.Client, isAjax bool) string

func Random

func Random(min, max int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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