Compare commits
	
		
			2 Commits
		
	
	
		
			v3.11.24
			...
			vtolstov-p
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 629087ec7e | ||
| c576abf26a | 
| @@ -1,5 +1,5 @@ | |||||||
| # Micro  | # Micro  | ||||||
|  |  | ||||||
|  |  | ||||||
| Micro is a standard library for microservices. | Micro is a standard library for microservices. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -8,7 +8,6 @@ import ( | |||||||
| 	"time" | 	"time" | ||||||
|  |  | ||||||
| 	uuidv8 "github.com/ash3in/uuidv8" | 	uuidv8 "github.com/ash3in/uuidv8" | ||||||
| 	"github.com/google/uuid" |  | ||||||
| 	nanoid "github.com/matoous/go-nanoid" | 	nanoid "github.com/matoous/go-nanoid" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| @@ -97,10 +96,6 @@ func New(opts ...Option) (string, error) { | |||||||
| 	return "", errors.New("invalid option, Type unspecified") | 	return "", errors.New("invalid option, Type unspecified") | ||||||
| } | } | ||||||
|  |  | ||||||
| func ToUUID(s string) uuid.UUID { |  | ||||||
| 	return uuid.MustParse(s) |  | ||||||
| } |  | ||||||
|  |  | ||||||
| // Must is the same as New but fatals on error | // Must is the same as New but fatals on error | ||||||
| func MustNew(opts ...Option) string { | func MustNew(opts ...Option) string { | ||||||
| 	id, err := New(opts...) | 	id, err := New(opts...) | ||||||
|   | |||||||
| @@ -7,14 +7,5 @@ func TestUUIDv8(t *testing.T) { | |||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		t.Fatal(err) | 		t.Fatal(err) | ||||||
| 	} | 	} | ||||||
| 	_ = id | 	t.Logf("xxx %s\n", id) | ||||||
| } |  | ||||||
|  |  | ||||||
| func TestToUUID(t *testing.T) { |  | ||||||
| 	id, err := New() |  | ||||||
| 	if err != nil { |  | ||||||
| 		t.Fatal(err) |  | ||||||
| 	} |  | ||||||
| 	u := ToUUID(id) |  | ||||||
| 	_ = u |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user