Skip to content

MeteHanC/python-functions-for-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge Go Report Card codecov CircleCI

Python Functions For Go

Some useful Python functions for Golang. Currently there are only 3; reverse, min, max

Reverse

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

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

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

About

Some handy Python functions for go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages