Skip to content

timob/sindex

Repository files navigation

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

About

Slice indexing library for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages