utils

package
v0.0.0-...-d14b600 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DSNError = errors.New("dsn string error")

Functions

func CamelizeStr

func CamelizeStr(s string, upperCase bool) string

func FileExists

func FileExists(name string) (bool, error)

FileExists reports whether the named file or directory exists.

func FirstCharacter

func FirstCharacter(name string) string

func GetDbNameFromDSN

func GetDbNameFromDSN(dsn string) (string, error)

func ObjToMap

func ObjToMap(bean interface{}, filter func(fieldName string) string) map[string]interface{}

func SaveFile

func SaveFile(dirPath, fileName string, text []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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