From c467da4950fa90bcc9e4b99c2a11eccd930c787c Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 7 Sep 2015 23:48:37 +0200 Subject: [PATCH] format code --- vid.go | 10 +++++----- vuserset.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vid.go b/vid.go index 1ccab80f..7d3cfd0c 100644 --- a/vid.go +++ b/vid.go @@ -1,7 +1,7 @@ package core import ( - "crypto/md5" + "crypto/md5" "encoding/hex" "fmt" ) @@ -10,10 +10,10 @@ import ( type VID [16]byte func (v VID) Hash(suffix []byte) []byte { - md5 := md5.New() - md5.Write(v[:]) - md5.Write(suffix) - return md5.Sum(nil) + md5 := md5.New() + md5.Write(v[:]) + md5.Write(suffix) + return md5.Sum(nil) } var byteGroups = []int{8, 4, 4, 4, 12} diff --git a/vuserset.go b/vuserset.go index b082b094..d8acae25 100644 --- a/vuserset.go +++ b/vuserset.go @@ -1,5 +1,5 @@ package core type VUserSet struct { - validUserIds [][]byte + validUserIds [][]byte }