Dot is a library for the Go Programming Language. It provides implementation of basic common tasks.
- Disposable interface for objects that needs to release resources before dereferencing.
- LockStatus type to control lock status of a lockable object.
- MulticastDispose type to register multiple dispose functions as a single
Disposable
object. - Using function to define a execution block for
Disposable
objects. - Predefined errors for duplicated key, invalid key and not supported errors.
- WaitFunc function to wait until a function returns true.
- WaitPeerListening function to wait a peer until it is ready for new connections.
To install raiqub/dot library run the following command:
go get gopkg.in/raiqub/dot.v2
To import this package, add the following line to your code:
import "gopkg.in/raiqub/dot.v2"
Examples can be found on library documentation.
The tests can be run via the usual go test
procedure:
go test -v --race ./...
raiqub/dot is made available under the Apache Version 2.0 License.