---
title: "Discussion on \"Go Cheatsheet - Read Config File\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - Read Config File\". Read Config File\nJson\nIf your config file only contains a few of fields, and you don't want to install external modules, the easiest way is just using the json file.\nSuppose we have a config file like below:\n{\n    \"host\": \"127.0.0.1\",\n    \"port\": 808..."
url: "https://hashnode.com/posts/go-cheatsheet-read-config-file/6081aba8fea38e52a9c58b8c"
---

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

Discussion

# [Go Cheatsheet - Read Config File](https://hn.0xbf.me/go-cheatsheet-read-config-file?utm_source=hashnode&utm_medium=feed)

Read Config File Json If your config file only contains a few of fields, and you don't want to install external modules, the easiest way is just using the json file. Suppose we have a config file like below: { "host": "127.0.0.1", "port": 808...

Apr 22, 2021 · 2 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.
