Skip to content

Instantly share code, notes, and snippets.

@xvbnm48
Created December 18, 2022 02:40
Show Gist options
  • Save xvbnm48/a795a2a9e6dbfceb8558f878d02abf8c to your computer and use it in GitHub Desktop.
Save xvbnm48/a795a2a9e6dbfceb8558f878d02abf8c to your computer and use it in GitHub Desktop.
example array in golang
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