From a25a49c11fc551f5beb711e22de1316f3c32b37d Mon Sep 17 00:00:00 2001 From: raul Date: Tue, 30 Jan 2024 19:48:33 +0100 Subject: [PATCH] Make functions exportable --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 14556d4..2a7669a 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ package minmax // TODO: Handle empty arrays without panicking -func min(arr []float64) (min float64) { +func Min(arr []float64) (min float64) { min = arr[0] for _, v := range arr { if v < min { @@ -14,7 +14,7 @@ func min(arr []float64) (min float64) { return min } -func max(arr []float64) (max float64) { +func Max(arr []float64) (max float64) { max = arr[0] for _, v := range arr { if v > max {