Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4thel00z/netstring
https://github.com/4thel00z/netstring
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/4thel00z/netstring
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2021-12-05T14:48:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-22T22:42:46.000Z (about 3 years ago)
- Last Synced: 2024-11-24T16:52:04.464Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# netstring
## Motivation
In case of unreliable `io` you want a transmission envelope which ensures that the payload arrives completely.
## Installation
```bash
go get -u github.com/4thel00z/netstring
```## Usage
```go
package mainimport (
"github.com/4thel00z/netstring/v1/pkg/netstring"
"log"
"strings"
)func main() {
ns, err := netstring.FromReader(strings.NewReader("4:Test,"))
if err != nil {
log.Fatalln(err)
}
log.Println(ns)
}
```## License
This project is licensed under the GPL-3 license.