path

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 *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

パスを文字列に変換

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL