Documentation
¶
Index ¶
- func AddRequestHeader(request *http.Request, key, value string)
- func AddRequestHeaders(request *http.Request, headers map[string]string)
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func CloseWebSocketConnection(conn *websocket.Conn, closeCode int, closeMessage string) error
- func CountStringOccurrences(input, substr string) (int, error)
- func CreateDirectory(dirName string) error
- func CreateGetRequest(url string) (*http.Request, error)
- func CreateHTTPClient(autoRedirect bool, proxyConfig *ProxyConfig) (*http.Client, error)
- func CreatePostRequest(url string, contentType string, body io.Reader) (*http.Request, error)
- func CreateWebSocketConnection(url string) (*websocket.Conn, error)
- func CurrentUnixTime() int64
- func DecryptAES(ciphertext []byte, key []byte) ([]byte, error)
- func DeleteFile(filename string) error
- func DeserializeJSON(jsonData []byte, target interface{}) error
- func DownloadFile(url string, outputPath string) error
- func EncryptAES(data []byte, key []byte) ([]byte, error)
- func ExecuteRequest(client *http.Client, request *http.Request) (*http.Response, error)
- func FileExists(filename string) bool
- func GetCookieFromResponse(resp *http.Response, cookieName string) (*http.Cookie, error)
- func GetCookiesFromResponse(resp *http.Response, cookieNames []string) ([]*http.Cookie, error)
- func GetResponseBody(response *http.Response) (string, error)
- func HashSHA256(data []byte) ([]byte, error)
- func IsEmailValid(email string) bool
- func IsPhoneNumberValid(phoneNumber string) bool
- func IsURLValid(urlString string) bool
- func MapKeys(m map[string]interface{}) []string
- func MultiThread(fn func(), numThreads int)
- func MultiThreadForEachLine(lines []string, fn func(line string), numThreads int)
- func ParseLR(str, before, after string) (string, error)
- func RandomString(length int) (string, error)
- func RandomUserAgent(request *http.Request)
- func ReadFile(filename string) ([]byte, error)
- func ReadWebSocketMessage(conn *websocket.Conn) (messageType int, p []byte, err error)
- func ReplaceString(input, old, new string) string
- func ReverseString(str string) string
- func SerializeJSON(data interface{}) ([]byte, error)
- func SetCookieForRequest(req *http.Request, cookie *http.Cookie)
- func SetCookiesForRequest(req *http.Request, cookies []*http.Cookie)
- func SetUserAgent(request *http.Request, agent string)
- func SingleThread(fn func())
- func StringSliceContains(slice []string, value string) bool
- func URLDecodeString(input string) (string, error)
- func URLEncodeString(input string) string
- func UploadFile(filePath string, uploadURL string, headers http.Header) error
- func UseProxy(proxyConfig *ProxyConfig, request *http.Request) error
- func WebSocketHandler(w http.ResponseWriter, r *http.Request)
- func WriteFile(filename string, data []byte) error
- func WriteWebSocketMessage(conn *websocket.Conn, messageType int, data []byte) error
- type ProgressReader
- type ProxyConfig
- type ProxyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRequestHeader ¶
func Base64Decode ¶
func Base64Encode ¶
func CountStringOccurrences ¶
func CreateDirectory ¶
func CreateHTTPClient ¶
func CreateHTTPClient(autoRedirect bool, proxyConfig *ProxyConfig) (*http.Client, error)
func CreatePostRequest ¶
func CurrentUnixTime ¶
func CurrentUnixTime() int64
func DeleteFile ¶
func DeserializeJSON ¶
func DownloadFile ¶
func ExecuteRequest ¶
func FileExists ¶
func GetCookieFromResponse ¶
func GetCookiesFromResponse ¶
func HashSHA256 ¶
func IsEmailValid ¶
func IsPhoneNumberValid ¶
func IsURLValid ¶
func MultiThread ¶
func MultiThread(fn func(), numThreads int)
func MultiThreadForEachLine ¶
func RandomString ¶
func RandomUserAgent ¶
func ReadWebSocketMessage ¶
func ReplaceString ¶
func ReverseString ¶
func SerializeJSON ¶
func SetUserAgent ¶
func SingleThread ¶
func SingleThread(fn func())
func StringSliceContains ¶
func URLDecodeString ¶
func URLEncodeString ¶
func WebSocketHandler ¶
func WebSocketHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type ProgressReader ¶
type ProxyConfig ¶
Click to show internal directories.
Click to hide internal directories.