Documentation ¶
Overview ¶
database provide common database methods
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func NewDatabase ¶
NewDatabase returns a Database
Example ¶
os.Setenv("DOCKER_NAME", "utest01") _, err := NewDatabase() fmt.Println(err) os.Setenv("DOCKER_NAME", "") _, err = NewDatabase() fmt.Println(err)
Output: <nil> <nil>
Click to show internal directories.
Click to hide internal directories.