API の死活監視と証明書の有効期限切れ(※)のチェックを golang を利用して行い、結果を Line Notify を使って通知します。 ※ Let's Encrypt を利用してるけど 3ヶ月で有効期限切れになる golang は会社で新しいプロダウトに利用する可能性があったので試しに使ってみることにしました。 前準備 Golang の開発環境の構築(以下のサイト参考にした) Golang 本家サイト Intellij golang IDE Line Notify 準備 コマンドラインから LINE にメッセージを送れる LINE Notify 仕様 引数にチェック対象のエンドポイントの URI と Line Notify 用の Token を設定できるようにする package main import ( "fmt" "net/http" "flag" "log" "net/ur