File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,16 @@ var (
3838// Package methods
3939//___________________________________
4040
41- // NewGUID method returns a new Globally Unique identifier (GUID).
41+ // NewGUID method returns a new Globally Unique Identifier (GUID).
4242//
4343// The 12-byte `UniqueId` consists of-
4444// - 4-byte value representing the seconds since the Unix epoch,
4545// - 3-byte machine identifier,
4646// - 2-byte process id, and
4747// - 3-byte counter, starting with a random value.
4848//
49- // NewGUID generation using Mongo Object ID algorithm to generate globally
50- // unique ids - https://docs.mongodb.com/manual/reference/method/ObjectId/
49+ // Uses Mongo Object ID algorithm to generate globally unique ids -
50+ // https://docs.mongodb.com/manual/reference/method/ObjectId/
5151func NewGUID () string {
5252 var b [12 ]byte
5353 // Timestamp, 4 bytes, big endian
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ package ess
66
77import "strings"
88
9+ // StringEmpty is empty string constant. Using `ess.StringEmpty` instead of "".
10+ const StringEmpty = ""
11+
912// IsStrEmpty returns true if strings is empty otherwise false
1013func IsStrEmpty (v string ) bool {
1114 return len (strings .TrimSpace (v )) == 0
You can’t perform that action at this time.
0 commit comments