specifications

package module
v0.0.0-...-4fe75ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 0 Imported by: 0

README

go-specifications

Specification Pattern for Golang

Totally a POC, maybe Functional will be a best choice ...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractSpecification

type AbstractSpecification struct {
	Specification
}

AbstractSpecification implements Specification interface

func (*AbstractSpecification) And

And returns a specification composition with AND operator

func (*AbstractSpecification) Not

Not returns a specification composition with NOT operator

func (*AbstractSpecification) Or

Or returns a specification composition with OR operator

type Specification

type Specification interface {
	IsSatisfiedBy(object interface{}) bool
}

Specification contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL