Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/go-json-datatypes
Get JSON datatype for given value.
https://github.com/segment-boneyard/go-json-datatypes
Last synced: about 5 hours ago
JSON representation
Get JSON datatype for given value.
- Host: GitHub
- URL: https://github.com/segment-boneyard/go-json-datatypes
- Owner: segment-boneyard
- Created: 2015-03-10T08:08:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T07:05:15.000Z (over 9 years ago)
- Last Synced: 2024-04-09T16:31:04.447Z (7 months ago)
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 10
- Watchers: 47
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-json-datatypes
--
import "github.com/segmentio/go-json-datatypes"Get JSON datatype for given value.
## Example
```go
package main
import "github.com/segmentio/go-json-datatypes"
import "fmt"func main() {
fmt.Println(Datatype("hello world"))
// String
fmt.Println(Datatype(15))
// Number
fmt.Println(Datatype([]string{"hello"}))
// Array
// ..
}
```## License
MIT