文件名称:go-hashids:Go(golang)http的实现
文件大小:11KB
文件格式:ZIP
更新时间:2024-05-31 23:44:10
golang hashids Go
混蛋 MIT许可下的Go(golang)v1实现(与原始实现相同) ( 原始实现 设置 go get github.com/speps/go-hashids/v2 CLI工具: go get github.com/speps/go-hashids/v2/cmd/hashid 例子 package main import "fmt" import "github.com/speps/go-hashids/v2" func main () { hd := hashids . NewData () hd . Salt = "this is my salt" hd . MinLength = 30 h , _ := hashids . NewWithData ( hd ) e , _ := h . Encode ([] int { 45 , 434 , 1313 , 99 })
【文件预览】:
go-hashids-master
----.gitignore(252B)
----go.mod(47B)
----LICENSE(1KB)
----README.md(2KB)
----hashids_min_length_test.go(933B)
----hashids_bad_input_test.go(1KB)
----hashids.go(12KB)
----hashids_custom_alphabet_test.go(1KB)
----hashids_test.go(10KB)
----cmd()
--------hashid()
----.editorconfig(51B)