<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rymiyamoto</author_name>
  <author_url>https://blog.hatena.ne.jp/rymiyamoto/</author_url>
  <blog_title>every Tech Blog</blog_title>
  <blog_url>https://tech.every.tv/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>バックエンド</anon>
    <anon>アドベントカレンダー2024</anon>
  </categories>
  <description>この記事は every Tech Blog Advent Calendar 2024(夏) 3 日目の記事です。 はじめに こんにちは、トモニテでバックエンド周りの開発を行っている rymiyamoto です。 最近は学園アイドルのプロデューサー業に追われています。 今回は、Go 言語で CLI ツールを開発する際によく使われるライブラリである cobra と go1.21 から標準パッケージで使えるようになった slog を使って、CLI ツールを開発する方法について紹介します。 選定理由 現状の課題 Go 言語だとスクリプト処理を実装する際、簡単なものであれば main.go にそのまま処…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.every.tv%2Fentry%2F2024%2F06%2F03%2F103933&quot; title=&quot;go 言語で cobra と slog を使った CLI ツール開発 - every Tech Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/r/rymiyamoto/20240529/20240529210000.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-03 10:39:33</published>
  <title>go 言語で cobra と slog を使った CLI ツール開発</title>
  <type>rich</type>
  <url>https://tech.every.tv/entry/2024/06/03/103933</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
