Documentation
¶
Index ¶
- func CheckSequence(output string, sequence []string) error
- func IndentLines(content string, prefix string) string
- func IndexSequence(s string, sequence []string) int
- func IndexSequenceAt(s string, sequence []string, begin bool) int
- func SequenceOffset(s string, sequence []string, i int, begin bool) (anchorOffset int, anchorLen int, endOffset int)
- func ToReadonlyBytes(s string) []byte
- func ToReadonlyString(bytes []byte) string
- func TrimBefore(s string, p string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSequence ¶ added in v1.0.12
func IndentLines ¶ added in v1.0.38
func IndexSequence ¶
func IndexSequenceAt ¶ added in v1.0.2
func SequenceOffset ¶ added in v1.0.19
func SequenceOffset(s string, sequence []string, i int, begin bool) (anchorOffset int, anchorLen int, endOffset int)
- `anchorOffset` is the offset of the `i`'s anchor, if `begin` is false, it adds the length of the anchor - `anchorLen` is the length of the `i`'s anchor - `endOffset` is the end offset, which is the last anchor's starting offset plus its length
func ToReadonlyBytes ¶ added in v1.1.0
func ToReadonlyString ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.