Thread safe wrapper for go's List type The purpose of this project is to hopefully save someone else the time required to implement a lock around the standard go List methods.
Either copy the contents of the file ThreadSafeList.go into your project or use go get
go get github.com/BenKnigge/ThreadSafeList
import "github.com/BenKnigge/ThreadSafeList"
In addition to the standard methods in go's list which can be found here
https://golang.org/pkg/container/list/
The methods Lock and UnLock have been added
func (l *ThreadSafeList) Lock() {
}
func (l *ThreadSafeList) Unlock() {
}
If you would like to improve this project please make feel free to make a pull request.
If you have a comment or question about this project please use the issue tracker.
Benjamin Knigge
If you would like to hire me I can be contacted via the contact form on my blog at https://odinsql.com/contact/