Documentation ¶
Index ¶
- Variables
- func IsFilePath(path string) bool
- func IsFilePathToRelativeDir(path, dir string) bool
- func LooksLikeFilePath(path string) bool
- func LooksLikeRelativeFilePath(path string) bool
- func RelativeTo(path, relativeTo string) string
- func ToAbsDir(filePath string) (string, error)
- type File
- func (f File) AbsDir() string
- func (f File) AbsPath() string
- func (f File) Contents() []byte
- func (f File) HasID() bool
- func (f File) Reader() io.Reader
- func (f File) RelativeFile(path string) string
- func (f File) SetID(id string) (File, error)
- func (f File) Type() string
- func (f File) Write() (File, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileHasID = errors.New("file already has ID")
Functions ¶
func IsFilePath ¶
func IsFilePathToRelativeDir ¶
func LooksLikeFilePath ¶
func RelativeTo ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) RelativeFile ¶
Click to show internal directories.
Click to hide internal directories.