github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/thirdparty/math2/math2.go (about)

     1  package math2
     2  
     3  // IntMin returns the smaller of x or y.
     4  func IntMin(x, y int) int {
     5  	if x < y {
     6  		return x
     7  	}
     8  	return y
     9  }