💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* 目录结构 ![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20181214180908.bmp) * config.ini ~~~ [log] ;1=Debug, 2=Info, 3=Error LogLevel = 1 ~~~ * main.go ~~~ package main import ( "winnielog" "errors" ) func main() { //初始化 winnielog.InitLog() winnielog.DebugLog("调试信息") winnielog.InfoLog("运行信息") winnielog.ErrorLog(errors.New("错误信息")) } ~~~ * 生成的日记文件 ![![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20181214181055.bmp)](images/screenshot_1593673539889.png)