Remove After editing... run "go generate" lines

This commit is contained in:
Nigel Tao committed 2021-08-22 12:57:39 +10:00
1 parent bdfee5053c
commit 1d19157668
31 files changed
-68

No files matched your search

-5
View File
@@ -26,11 +26,6 @@ type EmbeddedString string
// Trim removes the leading "Copyright etc" boilerplate.
func (e EmbeddedString) Trim() string {
s := string(e)
if strings.HasPrefix(s, "// After editing ") {
if i := strings.Index(s, "\n\n"); i >= 0 {
s = s[i+2:]
}
}
if strings.HasPrefix(s, "// Copyright ") {
if i := strings.Index(s, "\n\n"); i >= 0 {
s = s[i+2:]