Versions in this module Expand all Collapse all v1 v1.5.0 Oct 29, 2023 Changes in this version + var DefaultRegex *regexp.Regexp = regexp.MustCompile(`/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/`) type Options + HeaderRegex *regexp.Regexp v1.4.0 Jul 10, 2022 Changes in this version + type Action int + const LicenseAdded + const LicenseOk + const LicenseReplaced + const OperationError + const SkippedAdd + const SkippedReplace + func File(path string, content string, license string, options *Options, ...) Action + type Operation struct + Action Action + Path string + type Options struct + Add bool + Extensions []string + IgnorePaths []string + LicensePath string + Path string + Replace bool + type Stats struct + ElapsedMs int64 + Files map[Action][]string + func Files(options *Options, ioHandler ioHandle) (*Stats, error) + func NewStats() *Stats + func (s *Stats) AddOperation(operation *Operation)