Skip to content

Commit e0723c9

Browse files
committed
Changed package names of shaker sort implementation in Go
1 parent d1ea23f commit e0723c9

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

sort/shaker_sort/go/shaker_sort.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
package main
2-
3-
import "fmt"
4-
5-
func main() {
6-
dataset := []float32{2, 7, 3, 9, 2, 5, 4, 1, 92, 12, 45, 22, 56, 24, 6.2}
7-
sorted := ShakerSort(dataset)
8-
fmt.Println(dataset)
9-
fmt.Println(sorted)
10-
}
1+
package shakersort
112

123
func ShakerSort(dataset []float32) []float32 {
134
sorted := make([]float32, len(dataset))

sort/shaker_sort/go/shaker_sort_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package shakersort
22

33
import (
44
"sort"

0 commit comments

Comments
 (0)