github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/compiler/testdata/go1.21.go (about) 1 package main 2 3 func min1(a int) int { 4 return min(a) 5 } 6 7 func min2(a, b int) int { 8 return min(a, b) 9 } 10 11 func min3(a, b, c int) int { 12 return min(a, b, c) 13 } 14 15 func min4(a, b, c, d int) int { 16 return min(a, b, c, d) 17 } 18 19 func minUint8(a, b uint8) uint8 { 20 return min(a, b) 21 } 22 23 func minUnsigned(a, b uint) uint { 24 return min(a, b) 25 } 26 27 func minFloat32(a, b float32) float32 { 28 return min(a, b) 29 } 30 31 func minFloat64(a, b float64) float64 { 32 return min(a, b) 33 } 34 35 func minString(a, b string) string { 36 return min(a, b) 37 } 38 39 func maxInt(a, b int) int { 40 return max(a, b) 41 } 42 43 func maxUint(a, b uint) uint { 44 return max(a, b) 45 } 46 47 func maxFloat32(a, b float32) float32 { 48 return max(a, b) 49 } 50 51 func maxString(a, b string) string { 52 return max(a, b) 53 } 54 55 func clearSlice(s []int) { 56 clear(s) 57 } 58 59 func clearZeroSizedSlice(s []struct{}) { 60 clear(s) 61 } 62 63 func clearMap(m map[string]int) { 64 clear(m) 65 }