Skip to content

Commit aad9025

Browse files
committed
godoc update
1 parent 795e001 commit aad9025

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

guid.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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/
5151
func NewGUID() string {
5252
var b [12]byte
5353
// Timestamp, 4 bytes, big endian

string.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ package ess
66

77
import "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
1013
func IsStrEmpty(v string) bool {
1114
return len(strings.TrimSpace(v)) == 0

0 commit comments

Comments
 (0)