Documentation ¶ Index ¶ func Is(path1, path2 Path) (bool, error) type Path func New(pathS string) Path func NewAbs(pathS string) Path func (path *Path) Abs(base string) (Path, error) func (path *Path) Exists() bool func (path *Path) IsSymlink() bool func (path *Path) Rel(base string) (Path, error) func (path *Path) Stat() (os.FileInfo, error) func (path *Path) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Is ¶ func Is(path1, path2 Path) (bool, error) 2つのパスが共通のファイルを指しているかどうかを確認します Types ¶ type Path ¶ type Path string いくつかのメソッドを持ったファイルパス func New ¶ func New(pathS string) Path func NewAbs ¶ func NewAbs(pathS string) Path func (*Path) Abs ¶ func (path *Path) Abs(base string) (Path, error) ファイルの絶対パスを返します func (*Path) Exists ¶ func (path *Path) Exists() bool utils.Existsを用いてファイルが存在するかどうかを確認します func (*Path) IsSymlink ¶ added in v0.5.2 func (path *Path) IsSymlink() bool func (*Path) Rel ¶ func (path *Path) Rel(base string) (Path, error) ファイルの相対パスを返します func (*Path) Stat ¶ func (path *Path) Stat() (os.FileInfo, error) ファイルのStatを返します func (*Path) String ¶ func (path *Path) String() string パスを文字列に変換 Source Files ¶ View all Source files path.go pathfunc.go Click to show internal directories. Click to hide internal directories.