github.com/xxf098/lite-proxy@v0.15.1-0.20230422081941-12c69f323218/transport/vmess/user_test.go (about) 1 package vmess 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/gofrs/uuid" 8 ) 9 10 func TestNewID(t *testing.T) { 11 uid, err := uuid.FromString("803277e5-64ef-48f9-8fd5-de82481ee789") 12 if err != nil { 13 t.Error(err) 14 } 15 newid := newID(&uid) 16 fmt.Println(newid.CmdKey) 17 ids := newAlterIDs(newid, 1) 18 for _, id := range ids { 19 fmt.Println(id.UUID.String()) 20 } 21 }