terraform-provider-docker/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go
Manuel Vogel 656c8a8c2f
Feat/swarm 1 update deps (#37)
* Removed id attribute of the network resource.
* Update dependencies. Mainly `go-dockerclient`
2018-01-24 09:31:23 +01:00

9 lines
291 B
Go

// +build windows
package winterm
// AddInRange increments a value by the passed quantity while ensuring the values
// always remain within the supplied min / max range.
func addInRange(n int16, increment int16, min int16, max int16) int16 {
return ensureInRange(n+increment, min, max)
}