fix golint

This commit is contained in:
daniel.w 2024-09-04 21:56:26 +08:00
parent d6473d617f
commit b10b979c7e
3 changed files with 17 additions and 1 deletions

11
go.mod Normal file
View File

@ -0,0 +1,11 @@
module code.30cm.net/digimon/library-go
go 1.22.3
require github.com/stretchr/testify v1.9.0
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

View File

@ -5,4 +5,6 @@ use (
./worker_pool ./worker_pool
./jwt ./jwt
./errs ./errs
.
./utils/invited_code
) )

View File

@ -1,6 +1,9 @@
package invited_code package invited_code
const DefaultCodeLen = 8 const (
DefaultCodeLen = 8
InitAutoId = 10000000
)
var ConvertTable = []string{ var ConvertTable = []string{
"O", "D", "W", "X", "Y", "O", "D", "W", "X", "Y",