Some useful Python functions for Golang. Currently there are only 3; reverse, min, max
It takes an array/slice of any type and reverses it and returns it as an []interface. Example usage;
pygo.Reverse( []string{"1", "2", "3", "4", "5", "6", "7", "8", "9", "golang"} )
Will give you an interface slice;
[9 8 7 6 5 4 3 2 1]
Min function returns the smallest value of the given array/slice of any type as an interface. Example usage;
pygo.Min([]int{1,6,-2,5,100,-10})
Will return
-10
Max function returns the largest value of the given array/slice of any type as an interface. Example usage;
pygo.Max([]float64{1,6,-2,5,100,-10})
Will return
100