repositorypackage
0.0.0-20201206080312-1eedde862709
Repository: https://github.com/timob/sindex.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
SIndex
Slice Indexing library for Golang.
Documentation
https://godoc.org/github.com/timob/sindex
Example
func ExampleList() {
bytes := []byte("helloworld")
bl := NewList(&bytes)
bytes[bl.Insert(5)] = ' '
bytes[bl.Append()] = '!'
fmt.Println(string(bytes))
for iter := bl.Iterator(0); iter.Next(); {
fmt.Print(string(bytes[iter.Pos()]))
}
// Output:
// hello world!
// hello world!
}
Projects using this library
- GNU Ls clone for win/unix https://github.com/timob/ls