Documentation ¶
Index ¶
- Constants
- func CloseDb()
- func ConfPath() *string
- func CurrPath() string
- func DbUrl(dbConf DbConf) (string, string)
- func LoadOsFileStr(name string) ([]byte, error)
- func LoadWebRootFileStr(path, name string) ([]byte, error)
- func LocalAddr() string
- func OpenDb(dbConf DbConf) *xorm.Engine
- func Port() *string
- func PublicAddr() string
- func SaveConf(path *string, conf *Conf) error
- func SaveDefaultConf(conf *Conf)
- func SaveOsFile(name string, data []byte) error
- func SaveWebRootFile(d, name string, data []byte) error
- func VersionCompare(version1 string, version2 string) (int, error)
- type Conf
- type DbConf
Constants ¶
View Source
const ( Local string = "local" Dev string = "dev" Product string = "product" )
********************profile start************************
Variables ¶
This section is empty.
Functions ¶
func CurrPath ¶
func CurrPath() string
********************db end************************ * prj path
func LoadOsFileStr ¶
func LoadWebRootFileStr ¶
func SaveDefaultConf ¶
func SaveDefaultConf(conf *Conf)
func SaveOsFile ¶
func SaveWebRootFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.