-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update golangci-lint + misc code cleanup
- Loading branch information
1 parent
e085a3a
commit 0e0d49f
Showing
10 changed files
with
73 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package ldvalue | ||
|
||
// string literals should be defined here if they are referenced in multiple files | ||
|
||
const nullAsJSON = "null" | ||
|
||
// ValueType is defined in value_base.go | ||
|
||
const ( | ||
// NullType describes a null value. Note that the zero value of ValueType is NullType, so the | ||
// zero of Value is a null value. | ||
NullType ValueType = iota | ||
// BoolType describes a boolean value. | ||
BoolType ValueType = iota | ||
// NumberType describes a numeric value. JSON does not have separate types for int and float, but | ||
// you can convert to either. | ||
NumberType ValueType = iota | ||
// StringType describes a string value. | ||
StringType ValueType = iota | ||
// ArrayType describes an array value. | ||
ArrayType ValueType = iota | ||
// ObjectType describes an object (a.k.a. map). | ||
ObjectType ValueType = iota | ||
// RawType describes a json.RawMessage value. This value will not be parsed or interpreted as | ||
// any other data type, and can be accessed only by calling AsRaw(). | ||
RawType ValueType = iota | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters