---
title: "Discussion on \"Learning Go 2 - Package and Receiver Function\" | Hashnode"
description: "Discussion on \"Learning Go 2 - Package and Receiver Function\". 2 Package types: Executable and Reusable.\nExecutable package main must have a function called \"main\". Reusable packages are like helper packages or libraries.\nWe can call the function in other go file of the same package main.\nLet's say we have \"main..."
url: "https://hashnode.com/posts/learning-go-2-package-and-receiver-function/62d189142f551b044bc1504c"
---

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

Discussion

# [Learning Go 2 - Package and Receiver Function](https://septrabbit.hashnode.dev/learning-go-2-package-and-receiver-function?utm_source=hashnode&utm_medium=feed)

2 Package types: Executable and Reusable. Executable package main must have a function called "main". Reusable packages are like helper packages or libraries. We can call the function in other go file of the same package main. Let's say we have "main...

Jul 15, 2022 · 1 min read · septrabbit.hashnode.dev  
Read the article

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

## Written by

[septRabbit](https://hashnode.com/@SeptRabbit)

@SeptRabbit

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

frontend developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
