goutils

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 13 Imported by: 37

README

goutils

Golang Utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error) bool

func CheckNoLogErr

func CheckNoLogErr(err error) bool

func DeleteFile

func DeleteFile(filename string) error

func FileIsExists

func FileIsExists(filename string) bool

func LocNow

func LocNow(location string) *time.Time

func Log

func Log(v ...interface{})

func LogCheckErr deprecated

func LogCheckErr(err error) bool

Deprecated: Use goutils.CheckErr instead.

func Mkdir

func Mkdir(dirname string) error

func Print

func Print(v ...interface{})

func ReWriteFile

func ReWriteFile(filename string, bs []byte) error

func ReadFile

func ReadFile(filename string) []byte

func SafeWriteFile

func SafeWriteFile(filename string, bs []byte) error

func ToByte

func ToByte(v string) []byte

func ToString

func ToString(b []byte) string

func WriteFile

func WriteFile(filename string, bs []byte) error

Types

type UploadHandler

type UploadHandler struct{}

func (*UploadHandler) ServeHTTP

func (m *UploadHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*UploadHandler) StreamUpload

func (m *UploadHandler) StreamUpload(w http.ResponseWriter, req *http.Request)

func (*UploadHandler) Upload

func (m *UploadHandler) Upload(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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