func (c Copyright) goInjectNotice(path string, file, notice []byte) []byte {
	goBuildTag := goBuildTagMatch.Find(file)
	file = goBuildTagMatch.ReplaceAll(file, nil)
	if c.fileHasCopyrightHeader(file, notice) {
		return nil
	}

	c.Verbosef("injecting notice: %s", path)
	file = c.removeCopyrightHeader(file, notice)
	return c.mergeFileSections(goBuildTag, notice, file)
}
// goInjectNotice handles go files differently because they may contain build tags.
goInjectNotice handles go files differently because they may contain build tags.
// goInjectNotice handles go files differently because they may contain build tags .
func (c Copyright) goInjectNotice(path string, file, notice []byte) []byte {
	goBuildTag := goBuildTagMatch.Find(file)
	file = goBuildTagMatch.ReplaceAll(file, nil)
	if c.fileHasCopyrightHeader(file, notice) {
		return nil
	}
	c.Verbosef("injecting notice: %s", path)
	file = c.removeCopyrightHeader(file, notice)
	return c.mergeFileSections(goBuildTag, notice, file)
}
func ( c Copyright ) goInjectNotice ( path string , file , notice [ ] byte ) [ ] byte { goBuildTag := goBuildTagMatch . Find ( file ) file = goBuildTagMatch . ReplaceAll ( file , nil ) if c . fileHasCopyrightHeader ( file , notice ) { return nil } c . Verbosef ( " " , path ) file = c . removeCopyrightHeader ( file , notice ) return c . mergeFileSections ( goBuildTag , notice , file ) }
goInjectNotice handles go files differently because they may contain build tags.
goInjectNotice handles go files differently because they may contain build tags .