Skip to content

Commit

Permalink
feat(common): add short code length constant
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Oct 2, 2020
1 parent ba6e13b commit 6c93eae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions common/constant.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
package common

// DateLayout is standard yyyy-mm-dd format
const DateLayout = "2006-01-02 15:04:05"
const (
// DateLayout is standard yyyy-mm-dd format
DateLayout = "2006-01-02 15:04:05"

// ShortCodeLength is length of short code to be generated (5-12 chars)
ShortCodeLength = 6
)

0 comments on commit 6c93eae

Please sign in to comment.