format repo with "gofumpt" tool

This commit is contained in:
Tnze
2022-11-26 20:37:57 +08:00
parent 7814e7b1ab
commit fad92fe364
61 changed files with 333 additions and 268 deletions

View File

@ -2,12 +2,13 @@ package offline
import (
"crypto/md5"
"github.com/google/uuid"
)
// NameToUUID return the UUID from player name in offline mode
func NameToUUID(name string) uuid.UUID {
var version = 3
version := 3
h := md5.New()
h.Write([]byte("OfflinePlayer:"))
h.Write([]byte(name))