25 lines
484 B
Go
25 lines
484 B
Go
// For more tutorials: https://blog.learngoprogramming.com
|
|
//
|
|
// Copyright © 2018 Inanc Gumus
|
|
// Learn Go Programming Course
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
//
|
|
|
|
package main
|
|
|
|
func main() {
|
|
// these two arrays not comparable
|
|
// their types are different
|
|
|
|
// uncomment all the code below and observe the error
|
|
|
|
// a := [3]int{6, 9, 3}
|
|
// b := [2]int{6, 9}
|
|
|
|
// you can't ask this question
|
|
|
|
// if a == b {
|
|
// fmt.Println("they're equal!")
|
|
// }
|
|
}
|