Documentation
¶
Index ¶
- type AbsolutePath
- func (ap *AbsolutePath) Combine(other RelativePath) AbsolutePath
- func (ap *AbsolutePath) Join(others ...RelativePath) AbsolutePath
- func (ap *AbsolutePath) MarshalJSON() ([]byte, error)
- func (ap *AbsolutePath) RawValue() string
- func (ap *AbsolutePath) String() string
- func (ap *AbsolutePath) UnmarshalJSON(bytes []byte) error
- type ByteIndex
- type InvalidCodepointStartIndexError
- type NotAbsolutePathError
- type NotRelativePathError
- type RelativePath
- func (rp *RelativePath) Combine(other RelativePath) RelativePath
- func (rp *RelativePath) Join(others ...RelativePath) RelativePath
- func (rp *RelativePath) MarshalJSON() ([]byte, error)
- func (rp *RelativePath) RawValue() string
- func (rp *RelativePath) String() string
- func (rp *RelativePath) UnmarshalJSON(bytes []byte) error
- type UTF8Bytes
- func (s *UTF8Bytes) ByteAt(i ByteIndex) byte
- func (s *UTF8Bytes) Combine(other UTF8Bytes) UTF8Bytes
- func (s *UTF8Bytes) IsEmpty() bool
- func (s *UTF8Bytes) Join(others ...UTF8Bytes) UTF8Bytes
- func (s *UTF8Bytes) Len() int
- func (s *UTF8Bytes) MustAppendASCIIByte(b byte)
- func (s *UTF8Bytes) MustAppendRune(r rune)
- func (s *UTF8Bytes) MustSliceUTF8(start ByteIndex, end ByteIndex) UTF8Bytes
- func (s *UTF8Bytes) RawValueCopy() []byte
- func (s *UTF8Bytes) RawValueNoCopy() []byte
- func (s *UTF8Bytes) RuneAt(i ByteIndex) (_ rune, runeLength int32)
- func (s *UTF8Bytes) SliceUTF8(start ByteIndex, end ByteIndex) (UTF8Bytes, error)
- func (s *UTF8Bytes) String() string
- func (s *UTF8Bytes) ToUTF8String() UTF8String
- type UTF8String
- func (s UTF8String) ByteAt(i ByteIndex) byte
- func (s UTF8String) Combine(other UTF8String) UTF8String
- func (s UTF8String) IsEmpty() bool
- func (s UTF8String) Join(others ...UTF8String) UTF8String
- func (s UTF8String) Len() int
- func (s UTF8String) MustSliceUTF8(start ByteIndex, end ByteIndex) UTF8String
- func (s UTF8String) RawValue() string
- func (s UTF8String) RuneAt(i ByteIndex) (_ rune, runeLength int32)
- func (s UTF8String) Slice(start ByteIndex, end ByteIndex) string
- func (s UTF8String) SliceUTF8(start ByteIndex, end ByteIndex) (UTF8String, error)
- func (s UTF8String) String() string
- func (s UTF8String) ToUTF8Bytes() UTF8Bytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbsolutePath ¶
type AbsolutePath struct {
// contains filtered or unexported fields
}
func NewAbsolutePath ¶
func NewAbsolutePath(rawValue string) (_ AbsolutePath, ok bool)
func NewAbsolutePathUnchecked ¶
func NewAbsolutePathUnchecked(rawValue string, _ knownwf.AbsPathReason) AbsolutePath
func (*AbsolutePath) Combine ¶
func (ap *AbsolutePath) Combine(other RelativePath) AbsolutePath
func (*AbsolutePath) Join ¶
func (ap *AbsolutePath) Join(others ...RelativePath) AbsolutePath
func (*AbsolutePath) MarshalJSON ¶
func (ap *AbsolutePath) MarshalJSON() ([]byte, error)
func (*AbsolutePath) RawValue ¶
func (ap *AbsolutePath) RawValue() string
func (*AbsolutePath) String ¶
func (ap *AbsolutePath) String() string
func (*AbsolutePath) UnmarshalJSON ¶
func (ap *AbsolutePath) UnmarshalJSON(bytes []byte) error
type InvalidCodepointStartIndexError ¶
func (InvalidCodepointStartIndexError) Error ¶
func (e InvalidCodepointStartIndexError) Error() string
type NotAbsolutePathError ¶
type NotAbsolutePathError struct{ Data string }
func (NotAbsolutePathError) Error ¶
func (n NotAbsolutePathError) Error() string
type NotRelativePathError ¶
type NotRelativePathError struct{ Data string }
func (NotRelativePathError) Error ¶
func (n NotRelativePathError) Error() string
type RelativePath ¶
type RelativePath struct {
// contains filtered or unexported fields
}
func NewRelativePath ¶
func NewRelativePath(rawValue string) (_ RelativePath, ok bool)
func NewRelativePathUnchecked ¶
func NewRelativePathUnchecked(rawValue string, _ knownwf.RelPathReason) RelativePath
func (*RelativePath) Combine ¶
func (rp *RelativePath) Combine(other RelativePath) RelativePath
func (*RelativePath) Join ¶
func (rp *RelativePath) Join(others ...RelativePath) RelativePath
func (*RelativePath) MarshalJSON ¶
func (rp *RelativePath) MarshalJSON() ([]byte, error)
func (*RelativePath) RawValue ¶
func (rp *RelativePath) RawValue() string
func (*RelativePath) String ¶
func (rp *RelativePath) String() string
func (*RelativePath) UnmarshalJSON ¶
func (rp *RelativePath) UnmarshalJSON(bytes []byte) error
type UTF8Bytes ¶
type UTF8Bytes struct {
// contains filtered or unexported fields
}
func NewUTF8Bytes ¶
func NewUTF8BytesUnchecked ¶
func NewUTF8BytesUnchecked(rawValue []byte, _ knownwf.UTF8Reason) UTF8Bytes
func (*UTF8Bytes) Combine ¶
Combine concatenates the given UTF-8 byte slices into a single UTF-8 byte slice.
func (*UTF8Bytes) Join ¶
Join concatenates the given UTF-8 byte slices into a single UTF-8 byte slice.
func (*UTF8Bytes) MustAppendASCIIByte ¶
func (*UTF8Bytes) MustAppendRune ¶
func (*UTF8Bytes) MustSliceUTF8 ¶
func (*UTF8Bytes) RawValueCopy ¶
RawValueCopy returns a copy of the underlying byte slice.
func (*UTF8Bytes) RawValueNoCopy ¶
RawValueNoCopy returns the raw UTF-8 encoded bytes of the string.
SAFETY: The caller MUST NOT modify the returned value in a way that would break the type's invariants.
func (*UTF8Bytes) RuneAt ¶
RuneAt returns the rune at the given byte index.
If the byte index is not a valid UTF-8 code point start index, returns -1 for the length.
func (*UTF8Bytes) ToUTF8String ¶
func (s *UTF8Bytes) ToUTF8String() UTF8String
ToUTF8String copies the underlying buffer into a new string.
type UTF8String ¶
type UTF8String struct {
// contains filtered or unexported fields
}
func NewUTF8String ¶
func NewUTF8String(rawValue string) (_ UTF8String, ok bool)
func NewUTF8StringUnchecked ¶
func NewUTF8StringUnchecked(rawValue string, _ knownwf.UTF8Reason) UTF8String
func (UTF8String) ByteAt ¶
func (s UTF8String) ByteAt(i ByteIndex) byte
func (UTF8String) Combine ¶
func (s UTF8String) Combine(other UTF8String) UTF8String
func (UTF8String) IsEmpty ¶
func (s UTF8String) IsEmpty() bool
func (UTF8String) Join ¶
func (s UTF8String) Join(others ...UTF8String) UTF8String
func (UTF8String) Len ¶
func (s UTF8String) Len() int
func (UTF8String) MustSliceUTF8 ¶
func (s UTF8String) MustSliceUTF8(start ByteIndex, end ByteIndex) UTF8String
func (UTF8String) RawValue ¶
func (s UTF8String) RawValue() string
func (UTF8String) RuneAt ¶
func (s UTF8String) RuneAt(i ByteIndex) (_ rune, runeLength int32)
RuneAt returns the rune at the given byte index.
If the byte index is not a valid UTF-8 code point start index, returns -1 for the length.
func (UTF8String) SliceUTF8 ¶
func (s UTF8String) SliceUTF8(start ByteIndex, end ByteIndex) (UTF8String, error)
func (UTF8String) String ¶
func (s UTF8String) String() string
func (UTF8String) ToUTF8Bytes ¶
func (s UTF8String) ToUTF8Bytes() UTF8Bytes
ToUTF8Bytes copies the underlying buffer into a new byte slice.