Skip to content

Commit

Permalink
Remove constants file (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei committed Jan 28, 2018
1 parent 11b25c5 commit fcc2171
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
14 changes: 11 additions & 3 deletions accessors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ import (
"strings"
)

// arrayAccesRegexString is the regex used to extract the array number
// from the access path
const arrayAccesRegexString = `^(.+)\[([0-9]+)\]$`
const (
// PathSeparator is the character used to separate the elements
// of the keypath.
//
// For example, `location.address.city`
PathSeparator string = "."

// arrayAccesRegexString is the regex used to extract the array number
// from the access path
arrayAccesRegexString = `^(.+)\[([0-9]+)\]$`
)

// arrayAccesRegex is the compiled arrayAccesRegexString
var arrayAccesRegex = regexp.MustCompile(arrayAccesRegexString)
Expand Down
13 changes: 0 additions & 13 deletions constants.go

This file was deleted.

4 changes: 4 additions & 0 deletions conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import (
"net/url"
)

// SignatureSeparator is the character that is used to
// separate the Base64 string from the security signature.
const SignatureSeparator = "_"

// JSON converts the contained object to a JSON string
// representation
func (m Map) JSON() (string, error) {
Expand Down

0 comments on commit fcc2171

Please sign in to comment.