Skip to content

Instantly share code, notes, and snippets.

@cedricconol
Created May 6, 2020 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedricconol/a2a7936bdec8b9366829cd86ea444b86 to your computer and use it in GitHub Desktop.
Save cedricconol/a2a7936bdec8b9366829cd86ea444b86 to your computer and use it in GitHub Desktop.
main function for bubble sort go
func main() {
var numbers []int = []int{33, 91, 76, 8, 22}
var ascending bool = true
fmt.Println("Original list: ", numbers)
bubblesort(numbers, ascending)
fmt.Println("Sorted list: ", numbers)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment