Skip to content

Instantly share code, notes, and snippets.

@eihigh
Created April 12, 2019 00:06
Show Gist options
  • Save eihigh/11852429423ae33c812e1a6abe96ad25 to your computer and use it in GitHub Desktop.
Save eihigh/11852429423ae33c812e1a6abe96ad25 to your computer and use it in GitHub Desktop.

rakyll/statik を使うメモ

  • 生成されたパッケージは _ でインポートしておく
  • statik/fs.New は http.FileSystem を返す
  • statikFS.Open(path) で http.File 型のオブジェクトを取得できる
  • 取得したファイルは close する必要がない(closeの中で何もしていない)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment