util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePostFormRequest added in v0.1.9

func CreatePostFormRequest(url string, form FormData) (*http.Request, error)

CreatePostFormRequest with form data

func IsDir

func IsDir(path string) bool

IsDir path

func PostForm

func PostForm(url string, form FormData) (*http.Response, error)

PostForm request

func ToIntSlice

func ToIntSlice(slice []interface{}) ([]int, error)

ToIntSlice covert slice of interface with value of string, number to int slice

Types

type FormData

type FormData map[string]interface{}

FormData defines form field for http POST

type FormFile

type FormFile struct {
	Name string
	Data []byte
}

FormFile defines file name and data for filed

Jump to

Keyboard shortcuts

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