{"categories":["\u6280\u8853","Go"],"width":"100%","description":"\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u5024\u3092\u74b0\u5883\u5909\u6570\u304b\u3089\u6ce8\u5165\u3057\u3066\u3044\u307e\u3059\u304b? Go\u306e\u5834\u5408\u3001struct\u306b\u8a2d\u5b9a\u5024\u3092\u96c6\u7d04\u3059\u308b\u306e\u306b\u306f GitHub - caarlos0/env: A simple and zero-dependencies library to parse environment variables into structs. \u306a\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u4e00\u65b9\u3067\u3053\u3046\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3067struct\u3092\u30cd\u30b9\u30c8\u3055\u305b\u3066\u3044\u304f\u3068\u3001\u7d50\u5c40\u3069\u306e\u74b0\u5883\u5909\u6570\u304c\u5fc5\u8981\u306a\u306e\u304b\u3056\u3063\u3068\u773a\u3081\u308b\u306e\u304c\u96e3\u3057\u3044\u3067\u3059\u3002 type Config struct { Port int `env:\"PORT\" envDefault:\"8080\"` D\u2026","version":"1.0","image_url":null,"author_name":"utgwkk","provider_url":"https://hatena.blog","type":"rich","published":"2023-03-24 10:28:11","title":"github.com/caarlos0/env \u3092\u4f7f\u3063\u305f\u8a2d\u5b9a\u5024\u306b\u5fc5\u8981\u306a\u74b0\u5883\u5909\u6570\u540d\u3092\u5217\u6319\u3059\u308b","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2023%2F03%2F24%2F102811\" title=\"github.com/caarlos0/env \u3092\u4f7f\u3063\u305f\u8a2d\u5b9a\u5024\u306b\u5fc5\u8981\u306a\u74b0\u5883\u5909\u6570\u540d\u3092\u5217\u6319\u3059\u308b - \u79c1\u304c\u6b4c\u5ddd\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/utgwkk/","provider_name":"Hatena Blog","blog_url":"https://blog.utgw.net/","blog_title":"\u79c1\u304c\u6b4c\u5ddd\u3067\u3059","url":"https://blog.utgw.net/entry/2023/03/24/102811"}