File: utils.go

package info (click to toggle)
golang-github-bluele-gcache 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 160 kB
  • sloc: makefile: 4
file content (15 lines) | stat: -rw-r--r-- 149 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package gcache

func minInt(x, y int) int {
	if x < y {
		return x
	}
	return y
}

func maxInt(x, y int) int {
	if x > y {
		return x
	}
	return y
}