utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(dstName, srcName string) (written int64, err error)

func CurrentPath

func CurrentPath() string

func MD5

func MD5(msg string, upper bool) string

func Post

func Post(url string, params string) (string, error)

func Rand

func Rand() string

func Response

func Response(w http.ResponseWriter, description string, code string, status int)

func Unzip

func Unzip(src_zip string, dest string) error

Types

type ReplaceHelper

type ReplaceHelper struct {
	Root    string
	OldText string
	NewText string
}

func (*ReplaceHelper) DoWrok

func (h *ReplaceHelper) DoWrok() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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