package
Version:
v0.0.0-...-ed61a54
Opens a new window with list of versions in this module.
Published: Apr 14, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetAllData(interfaceElement []Data) (data map[string]interface{})
func GetConnection() *sql.DB
GetConnection return
type Data interface {
GetData() interface{}
}
type Env struct {
HOST string `json:"host"`
HOSTPORT string `json:"host-port"`
DBPORT string `json:"db-port"`
DBUSER string `json:"db-user"`
DBPASSWORD string `json:"db-password"`
DBNAME string `json:"db-name"`
}
func (e Env) GetData() interface{}
GetData obtains the data for the env file
type Template struct {
TITLE string `json:"title"`
}
GetData is a method to get the data for the template executed
Source Files
¶
Click to show internal directories.
Click to hide internal directories.