Files
MTranServer/deprecated/go/data/utils.go
xxnuo 5c25b294d1 refactor: prepare using js
feat: update

remove python
2026-01-02 20:51:23 +08:00

15 lines
267 B
Go

package data
import "crypto/sha256"
//go:generate go run gen_update.go
//go:generate go run gen_hash.go
func GetRecordsInfo() (hash string, size int) {
return RecordsHash, len(RecordsJson)
}
func ComputeHash(data []byte) [32]byte {
return sha256.Sum256(data)
}