---
title: "Discussion on \"Slices and Maps in Go\" | Hashnode"
description: "Discussion on \"Slices and Maps in Go\". Arrays in Go\nArrays are fixed-size groups of variables of the same type.\nFor example, [4]string is an array of 4 values of type string.\nTo declare an array of 10 integers:\nvar myInts [10]int\nprimes := [6]int{2, 3, 5, 7, 11, 13}            // or to de..."
url: "https://hashnode.com/posts/slices-and-maps-in-go/68a5addb5de2081f6b4fb410"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Slices and Maps in Go](https://go-lang.hashnode.dev/slices-and-maps-in-go?utm_source=hashnode&utm_medium=feed)

Arrays in Go Arrays are fixed-size groups of variables of the same type. For example, \[4\]string is an array of 4 values of type string. To declare an array of 10 integers: var myInts \[10\]int primes := \[6\]int{2, 3, 5, 7, 11, 13} // or to de...

Aug 20, 2025 · 16 min read · go-lang.hashnode.dev  
Updated Aug 21, 2025  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#google](https://hashnode.com/tag/google)
-   [#golang](https://hashnode.com/tag/golang)
-   [#golang-web-development](https://hashnode.com/tag/golang-web-development)

## Written by

[Rajesh Gurajala](https://hashnode.com/@rajesh6)

@rajesh6

  
[View profile](https://hashnode.com/@rajesh6)

DEVOPS RELATED

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
