---
title: "Discussion on \"Go's init function\" | Hashnode"
description: "Discussion on \"Go's init function\". You can define several init functions in a package or in the same source file.\nGo will only use one go routine to call those init function, it will not invoke the next one until the previous one has returned.\nGo's ref doesn't explicitly tell us the o..."
url: "https://hashnode.com/posts/gos-init-function/607c7902c99e200d08f7d454"
---

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

Discussion

# [Go's init function](https://hn.0xbf.me/gos-init-function?utm_source=hashnode&utm_medium=feed)

You can define several init functions in a package or in the same source file. Go will only use one go routine to call those init function, it will not invoke the next one until the previous one has returned. Go's ref doesn't explicitly tell us the o...

Apr 18, 2021 · 1 min read · hn.0xbf.me  
Read the article

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

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
