Documentation ¶
Index ¶
- func EmptyAfter(lines []string, idx int) int
- func EmptyBefore(lines []string, idx int) int
- func FromRegex(lines []string, pattern, content string) ([]string, string, int, error)
- func NewContext(parent ...context.Context) context.Context
- func ParseLines(abspath string) ([]string, error)
- func SetLogLevel(level string)
- func SetName(name string)
- func SetSentryDSN(dsn string)
- func StartSpan(ctx context.Context, operation string) *sentry.Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyAfter ¶
EmptyAfter finds the fist empty line after the given index.
func EmptyBefore ¶
EmptyBefore finds the fist empty line before the given index.
func FromRegex ¶
FromRegex finds the first line matching the regex, removes it from lines and returns its content.
func NewContext ¶
NewContext creates a new context with a logger and sentry hub
func ParseLines ¶
ParseLines parses a file into a slice of strings, one per line.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.