goutils

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 13 Imported by: 23 modules, 45 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, logg ...bool) []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
⌂ 换网址