docs
parent
0c63a59033
commit
a0deb620dd
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
Package buffers provides tools for working with byte array, and byte slice buffers, for the Go programming language.
|
||||||
|
|
||||||
|
import "github.com/reiver/go-buffers"
|
||||||
|
|
||||||
|
// ...
|
||||||
|
|
||||||
|
var buffer [1024]byte
|
||||||
|
|
||||||
|
var p []byte = buffer[:]
|
||||||
|
|
||||||
|
writer := buffers.NewWriter(p)
|
||||||
|
|
||||||
|
n, err := writer.Write(data)
|
||||||
|
|
||||||
|
switch casted := err.(type) {
|
||||||
|
case buffers.TooShort:
|
||||||
|
//@TODO
|
||||||
|
default:
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
package buffers
|
Loading…
Reference in New Issue