17
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

goのhot reloadingにはreflexが便利だった

Last updated at Posted at 2019-07-21
参考

はじめに

goで自動ビルド&実行探しておりこれでいいやんっていうのを見つけたのでご紹介です

結論

cespare/reflex を使います。これだけ!

$ go install github.com/cespare/reflex@latest
$ reflex -r '(\.go$|go\.mod)' -s go run cmd/server/main.go

その他

goのホットリローディングではよく

が挙げられているのですがGo Modulesを使っていた場合にすぐ動作しなかったりconfigファイルの準備が必要だったりと面倒だなと言うのが正直な印象でしたの。
reflexはGo以外の言語でも使用できかつ、1ラインでホットリローディングを実現できるのは結構便利です

17
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?