Skip to content

gomacro/compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compare

GoDoc

Compare objects. Compare(a, b) = a - b

  • Returns 0 (equality) for a = b.
  • Returns - (negative) for a < b.
  • Returns + (positive) for a > b.

Install

go get github.com/gomacro/compare
import "github.com/gomacro/compare"

License

GPLv2

Version: v0.1