- Introduced `hertzx` package with `NewHertz` function for server initialization. - Implemented `logx` package with various log collectors: Console, Loki, Elasticsearch, and Prometheus. - Added `Logger` struct to manage logging levels and collectors. - Created environment variable loading functionality in `osx` package to support configuration. - Enhanced logging capabilities with structured log entries and asynchronous collection.
15 lines
173 B
Go
15 lines
173 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"git.liteyuki.org/LiteyukiStudio/folium/dbx"
|
|
)
|
|
|
|
func main() {
|
|
// 初始化数据库连接
|
|
db := dbx.GetDB(nil, "test")
|
|
|
|
fmt.Println(db)
|
|
}
|