{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2022%2F08%2F06%2F180442\" title=\"go\u3067exec.Command\u5b9f\u884c\u6642\u306b\u51fa\u529b\u7d50\u679c\u3084\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3055\u305b\u305f\u3044 - at backyard\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://shinshin86.hateblo.jp/","image_url":null,"published":"2022-08-06 18:04:42","title":"go\u3067exec.Command\u5b9f\u884c\u6642\u306b\u51fa\u529b\u7d50\u679c\u3084\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3055\u305b\u305f\u3044","categories":["Golang","\u5099\u5fd8\u9332"],"height":"190","type":"rich","provider_url":"https://hatena.blog","url":"https://shinshin86.hateblo.jp/entry/2022/08/06/180442","author_url":"https://blog.hatena.ne.jp/shinshin86/","description":"Go\u521d\u5fc3\u8005\u306b\u3088\u308b\u5099\u5fd8\u9332\u306e\u305f\u3081\u3001Go\u7d4c\u9a13\u8005\u306b\u3068\u3063\u3066\u306f\u5f53\u305f\u308a\u524d\u306e\u5185\u5bb9\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u601d\u3046\u3053\u3068\u3092\u5148\u306b\u66f8\u3044\u3066\u304a\u304f exec.Command\u306e\u51fa\u529b\u3092CLI\u4e0a\u306b\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5 Go\u3067\u306f exec.Command \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u30b7\u30a7\u30eb\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306a\u5f62\u3067\u3001Go\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u901a\u3058\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3002 \u4f8b\u3048\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u3067\u5b9f\u884c\u3067\u304d\u308b\u3002 cmd := exec.Command(\"ls\") err = cmd.Run() if err != nil { fmt.Printf(\"Command failed: %v\\n\", err) os.Exit(1) } \u305f\u3060\u3001\u3053\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u306e\u5834\u5408\u3001ls\u30b3\u30de\u30f3\u30c9\u2026","provider_name":"Hatena Blog","author_name":"shinshin86","width":"100%","version":"1.0","blog_title":"at backyard"}