https://github.com/youpy/go-jsonl
https://github.com/youpy/go-jsonl
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/youpy/go-jsonl
- Owner: youpy
- License: mit
- Created: 2021-04-08T06:01:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T07:25:37.000Z (over 5 years ago)
- Last Synced: 2024-06-20T10:23:00.986Z (about 2 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-jsonl
## Usage
```go
import "github.com/youpy/go-jsonl"
type foo struct {
Bar string `json:"bar"`
}
func main() {
var result []foo
jsonlData := `{"bar":"aaa"}
{"bar":"bbb"}`
err := jsonl.Unmarshal([]byte(jsonlData), &result)
}
```