mirror of
https://github.com/xxnuo/MTranServer.git
synced 2026-05-08 14:36:07 +08:00
15 lines
267 B
Go
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)
|
|
}
|