Golang で、ログをファイルと標準出力に出して、ログファイルはローテーションする memo / Output the log to a file and standard output, and rotate the log file

ビデオストリーミング、録画、動きを検出した場合の画像の書き込み / Video streaming, recording, write image if detect motion

初 Raspberry Pi です。 4B 2GB

カメラサーバーを試したメモ

go mod でのローカルパッケージの扱いがどうなるか試してみた その2 / Handling local packages with go mod Part 2

version

directory tree

.bashrc

$HOME/go/app1/go.mod

$HOME/go/pkg-local/go.mod

update

cleans up these unused dependencies

see

  • https://blog.golang.org/using-go-modules
  • https://qiita.com/propella/items/e49bccc88f3cc2407745

 

golang decimal – github.com/shopspring/decimal

 

WebSocket を Golang でどうやったらいいか試してみた / WebSocket Test with Golang and Javascript

Chat サーバーを作ってみた…こぴぺしてみた

main.go:

websocket.js:

index.html:

See

  • https://qiita.com/m0a/items/f6405bc29073a7609050
  • https://stackoverflow.com/questions/30686655/go-program-throwing-error-cannot-find-package-code-google-com-p-go-net-websocke
  • https://qiita.com/nekozuki_twt/items/82974d54db71ee12a5e7
  • https://ashitani.jp/golangtips/tips_time.html