1 2 3 4 5 6 7 8 9 10 11 |
package main import ( "log" ) func init() { log.SetOutput(io.Discard) } ... |
filepath and path packages
path の操作ではまった。
path の操作には2つのパッケージが使用できるですが
filepath と path
path の方知りませんでした
パスの区切り文字が違う
filepath パッケージは OS固有のものが使用され
path パッケージは “/” が使用されるとのことで
当たり前ですが、
embed パッケージで使用する path は区切りが常に “/”
—