util

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CHA = "abcdefghijklmnopqrstuvwxyz0123456789"

Variables

This section is empty.

Functions

func FileExist

func FileExist(path string) bool

Does the file exist

func GetBody

func GetBody(client *http.Client, URL string) ([]byte, error)

func GetFileType

func GetFileType(path string) string

Get template source file type

func Home

func Home() (string, error)

func Load

func Load(filename string, v interface{})

func PostBody

func PostBody(client *http.Client, URL string, data url.Values) ([]byte, error)

PostBody read post body

func RandString

func RandString(n int) string

RandString n is the length. a-z 0-9

Types

This section is empty.

Jump to

Keyboard shortcuts

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