utils

package
v0.0.0-...-bfbcdec Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: GPL-3.0 Imports: 7 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 CleanUpGenFiles

func CleanUpGenFiles(dir string) error

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 MkdirPathIfNotExist

func MkdirPathIfNotExist(dirPath string) error

func SaveFile

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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