- use clearer method names, comments; - define dtm usage info; - determine action by switch-case instead of if-else, because only os.Args[1] needs to be checked; - use time layout '2006-01-02 15:04:05.999' to format milliseconds; - change filenames dtmsvr/main.go to dtmsvr/dtmsvr.go; - simplify code; - use `()` to think less about operator precedence; xxx
27 lines
947 B
Modula-2
27 lines
947 B
Modula-2
module github.com/yedf/dtm
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/bwmarrin/snowflake v0.3.0
|
|
github.com/gin-gonic/gin v1.6.3
|
|
github.com/go-playground/assert/v2 v2.0.1
|
|
github.com/go-resty/resty/v2 v2.6.0
|
|
github.com/go-sql-driver/mysql v1.5.0
|
|
github.com/json-iterator/go v1.1.10 // indirect
|
|
github.com/kr/pretty v0.1.0 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.1 // indirect
|
|
github.com/stretchr/testify v1.7.0
|
|
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
|
|
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
|
|
google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67 // indirect
|
|
google.golang.org/grpc v1.39.1
|
|
google.golang.org/protobuf v1.27.1
|
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
|
gopkg.in/yaml.v2 v2.3.0
|
|
gorm.io/driver/mysql v1.0.3
|
|
gorm.io/gorm v1.21.12
|
|
// gotest.tools v2.2.0+incompatible
|
|
)
|