Documentation
¶
Index ¶
Constants ¶
View Source
const RecommendedSectionEnd = "END OF AUTOGENERATED SECTION BY SYNCER"
View Source
const RecommendedSectionStart = "THIS SECTION IS AUTOGENERATED BY SYNCER, DO NOT EDIT"
Variables ¶
This section is empty.
Functions ¶
func ContainsSubstring ¶
Types ¶
type ParseConfig ¶
type ParseConfig struct { SplitBy string StartSection func(string) bool EndSection func(string) bool SectionTrim func(string) string SectionSorter func([]string) }
func RecommendedNewlineSeparatedConfig ¶
func RecommendedNewlineSeparatedConfig() ParseConfig
type ParseResult ¶
type ParseResult struct { State *files.State PreAutogenMsg string AutogenMsg string PostAutogenMsg string }
func Parse ¶
func Parse(ctx context.Context, loader files.StateLoader, path files.Path, conf ParseConfig) (*ParseResult, error)
Click to show internal directories.
Click to hide internal directories.