Created
December 18, 2022 02:40
-
-
Save xvbnm48/a795a2a9e6dbfceb8558f878d02abf8c to your computer and use it in GitHub Desktop.
example array in golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
// Membuat array dengan sintaks [n]T | |
a := [5]int{1, 2, 3, 4, 5} | |
fmt.Println(a) // Output: [1 2 3 4 5] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment