forked from gohouse/gorose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gorose.go
38 lines (32 loc) · 994 Bytes
/
gorose.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package gorose
// GOROSE_IMG ...
const GOROSE_IMG = `
,ad8888ba, 88888888ba
d8"' '"8b 88 "8b
d8' 88 ,8P
88 ,adPPYba, 88aaaaaa8P' ,adPPYba, ,adPPYba, ,adPPYba,
88 88888 a8" "8a 88""""88' a8" "8a I8[ "" a8P_____88
Y8, 88 8b d8 88 '8b 8b d8 '"Y8ba, 8PP"""""""
Y8a. .a88 "8a, ,a8" 88 '8b "8a, ,a8" aa ]8I "8b, ,aa
'"Y88888P" '"YbbdP"' 88 '8b '"YbbdP"' '"YbbdP"' '"Ybbd8"'
`
const (
// VERSION_TEXT ...
VERSION_TEXT = "\ngolang orm of gorose's version : "
// VERSION_NO ...
VERSION_NO = "v2.1.10"
// VERSION ...
VERSION = VERSION_TEXT + VERSION_NO + GOROSE_IMG
)
// Open ...
func Open(conf ...interface{}) (engin *Engin, err error) {
// 驱动engin
engin, err = NewEngin(conf...)
if err != nil {
if engin.GetLogger().EnableErrorLog() {
engin.GetLogger().Error(err.Error())
}
return
}
return
}