|
|
@ -23,12 +23,12 @@ package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
student ".." |
|
|
|
piscine ".." |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
arrInt := []int{23, 123, 1, 11, 55, 93} |
|
|
|
arrInt := []int{23, 123, 1, 11, 55, 93} |
|
|
|
max := student.Max(arrInt) |
|
|
|
max := piscine.Max(arrInt) |
|
|
|
fmt.Println(max |
|
|
|
fmt.Println(max |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
@ -36,8 +36,8 @@ func main() { |
|
|
|
And its output : |
|
|
|
And its output : |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
student@ubuntu:~/student/max$ go build |
|
|
|
student@ubuntu:~/piscine/test$ go build |
|
|
|
student@ubuntu:~/student/max$ ./max |
|
|
|
student@ubuntu:~/piscine/test$ ./test |
|
|
|
123 |
|
|
|
123 |
|
|
|
student@ubuntu:~/student/max$ |
|
|
|
student@ubuntu:~/piscine/test$ |
|
|
|
``` |
|
|
|
``` |
|
|
|