Skip to content

raiqub/dot

Repository files navigation

Dot

Dot is a library for the Go Programming Language. It provides implementation of basic common tasks.

Status

Build Status AppVeyor Build Coverage Status GoDoc

Features

  • 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.

Installation

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

Examples can be found on library documentation.

Running tests

The tests can be run via the usual go test procedure:

go test -v --race ./...

License

raiqub/dot is made available under the Apache Version 2.0 License.