摘要:
r.Run(":8000") 端口前面的冒号不可以省 阅读全文
摘要:
package main import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" "net/http" "github.com/natefinch/lumberjack" ) var sugarLogger *zap.SugaredLogger fu 阅读全文
摘要:
go mod tidy 阅读全文
摘要:
Environment: https://goproxy.cn,direct package main import ( "database/sql" "fmt" _ "github.com/go-sql-driver/mysql" //init() "time" ) var db sql.DB f 阅读全文