util

package
v0.0.0-...-294e45b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(data interface{}, code int, msg interface{}) *responseDTO

func CheckNeed

func CheckNeed(args ...interface{}) error

func Fail

func Fail(code int, msg string) *responseDTO

func FormatToString

func FormatToString(vol interface{}) (string, error)

func FormatToStruct

func FormatToStruct(chunk *string) (map[string]interface{}, error)

func GeneratorUUID

func GeneratorUUID() string

func ReadRealFile

func ReadRealFile(path string) (string, error)

func Success

func Success(data interface{}) *responseDTO

Types

This section is empty.

Jump to

Keyboard shortcuts

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