Documentation ¶
Index ¶
- func CheckedDeferFunc0(f func() error)
- func DumpPprofInfo()
- func GetFileLine() (string, int)
- func GetMySQLConnectionString(host, port, database, username, password string) string
- func Init()
- func InitializeDatabase(sqlDriver, connectionString, database, table, sqlCreateTable string) error
- func MatchPattern(str, pattern string) bool
- func RandomString(n int, letters string) string
- func SetSignalHandler(sig syscall.Signal, f func(syscall.Signal))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckedDeferFunc0 ¶
func CheckedDeferFunc0(f func() error)
CheckedDeferFunc0 is useful for report error in deferred function without argument.
func GetFileLine ¶
GetFileLine is a debug utility that get the file&line of caller.
func GetMySQLConnectionString ¶
GetMySQLConnectionString constructs a connection string based on input.
func InitializeDatabase ¶
InitializeDatabase initials the database, make sure database and table exist.
func MatchPattern ¶
MatchPattern function checks if the str matches specified regular expression pattern.
func RandomString ¶
RandomString returns a random string of n length with letters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.