common.go 467 B

123456789101112131415161718
  1. // Package common contains common utilities that are shared among other packages.
  2. // See each sub-package for detail.
  3. package common
  4. import (
  5. "errors"
  6. )
  7. var (
  8. ErrObjectReleased = errors.New("Object already released.")
  9. ErrBadConfiguration = errors.New("Bad configuration.")
  10. )
  11. // Releasable interface is for those types that can release its members.
  12. type Releasable interface {
  13. // Release releases all references to accelerate garbage collection.
  14. Release()
  15. }