Documentation
¶
Index ¶
- func AddHashToFileName(file protocol.File)
- func FilePathParts(uriPath string) (parts []string)
- func FindByRelativeFrom(file protocol.File, relativePath string) (desireFile protocol.File)
- func IsPathDirectory(uriPath string) bool
- type URI
- func (uri *URI) CompressType() string
- func (uri *URI) Domain() string
- func (uri *URI) Extension() string
- func (uri *URI) Init(u string)
- func (uri *URI) IsDirectory() bool
- func (uri *URI) Marshal() (data []byte)
- func (uri *URI) MarshalTo(data []byte) []byte
- func (uri *URI) MediaType() string
- func (uri *URI) Name() string
- func (uri *URI) NameWithoutExtension() string
- func (uri *URI) Path() string
- func (uri *URI) PathParts() []string
- func (uri *URI) Rename(newName string)
- func (uri *URI) Scheme() string
- func (uri *URI) URI() string
- func (uri *URI) Unmarshal(data []byte) (err protocol.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHashToFileName ¶
func FilePathParts ¶
func FindByRelativeFrom ¶
func IsPathDirectory ¶
Types ¶
type URI ¶
type URI struct {
// contains filtered or unexported fields
}
URI implement protocol.URI and protocol.FileURI interface
func (*URI) CompressType ¶
func (*URI) IsDirectory ¶
func (*URI) MarshalTo ¶
MarshalTo enecodes whole file data to given data and return it with new len!
func (*URI) NameWithoutExtension ¶
Click to show internal directories.
Click to hide internal directories.