utils

package
v0.0.0-...-5024c58 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(a, b []string) (diff []string)

Set Difference: A - B

func EncryptUrl

func EncryptUrl(_url string, _resize string, _width int, _height int, _gravity string, _enlarge int, _extension string) string

func EncryptUrlParams

func EncryptUrlParams(_url string, _parameters string, _extension string) string

func EncryptUrlString

func EncryptUrlString(_url string, _parameters string, width int, height int, _extension string) string

func Fetch

func Fetch(_method string, _url string, _header map[string]string, _body map[string]interface{}) (*http.Response, error)

func FetchRes

func FetchRes(_method string, _url string, _header map[string]string, _body map[string]interface{}) (*map[string]interface{}, error)

func InitializeLogger

func InitializeLogger()

func Intersections

func Intersections(a, b []string) (c []string)

func MakeGetRequest

func MakeGetRequest(_url string) map[string]interface{}

func Unique

func Unique(stringSlice []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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