---
title: "Discussion on \"Structs\" | Hashnode"
description: "Discussion on \"Structs\". A struct is a collection of fields.\nwe are creating xy struct with X and Y fiels.\ntype xy struct {\n    X string\n    Y string\n}\nGo Program \npackage main\n\nimport \"fmt\"\n\ntype xy struct {\n    X string\n    Y string\n}\n\nfunc main() {\n    fmt.Println(xy{\"x\",..."
url: "https://hashnode.com/posts/structs--deleted/6280ea550094f2f13f516118"
---

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

Discussion

# [Structs](https://blog.cloudnativefolks.org/structs--deleted?utm_source=hashnode&utm_medium=feed)

A struct is a collection of fields. we are creating xy struct with X and Y fiels. type xy struct { X string Y string } Go Program package main import "fmt" type xy struct { X string Y string } func main() { fmt.Println(xy{"x",...

May 15, 2022 · 1 min read · blog.cloudnativefolks.org  
Updated May 16, 2022  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

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

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
