<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sublimer</author_name>
  <author_url>https://blog.hatena.ne.jp/sublimer/</author_url>
  <blog_title>await wakeUp();</blog_title>
  <blog_url>https://sublimer.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>Go</anon>
    <anon>ツール開発</anon>
  </categories>
  <description>はじめに GoでCLIツールを作ろうと思い、Cobraというライブラリを採用することにしました。 Cobraの作者の方はViperという設定値をいい感じに管理するためのライブラリも作っており、これらを組み合わせて使う方法が公式ドキュメントで紹介されています。 今回CobraとViperを使ってCLIツールを作っている中で、想定通りに設定値が読み込まれない状態になったので、その原因と対処方法を記録として残しておこうと思います。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsublimer.hatenablog.com%2Fentry%2F2024%2F12%2F08%2F185131&quot; title=&quot;Cobra &amp;amp; Viperで設定値がうまく読み込まれなかった原因と対処 - await wakeUp();&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-12-08 18:51:31</published>
  <title>Cobra &amp; Viperで設定値がうまく読み込まれなかった原因と対処</title>
  <type>rich</type>
  <url>https://sublimer.hatenablog.com/entry/2024/12/08/185131</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
