mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Remove After editing... run "go generate" lines
This commit is contained in:
1 parent
bdfee5053c
commit
1d19157668
31 files changed
-68
No files matched your search
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2021 The Wuffs Authors.
|
// Copyright 2021 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2021 The Wuffs Authors.
|
// Copyright 2021 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2021 The Wuffs Authors.
|
// Copyright 2021 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// After editing this file, run "go generate" in the ../data directory.
|
|
||||||
|
|
||||||
// Copyright 2020 The Wuffs Authors.
|
// Copyright 2020 The Wuffs Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
@@ -355,11 +355,6 @@ func insertBaseAllPublicH(buf *buffer) error {
|
|||||||
|
|
||||||
func insertBaseCopyright(buf *buffer) error {
|
func insertBaseCopyright(buf *buffer) error {
|
||||||
s := string(embedBaseAllImplC)
|
s := string(embedBaseAllImplC)
|
||||||
if strings.HasPrefix(s, "// After editing ") {
|
|
||||||
if i := strings.Index(s, "\n\n"); i >= 0 {
|
|
||||||
s = s[i+2:]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if i := strings.Index(s, "\n\n"); i >= 0 {
|
if i := strings.Index(s, "\n\n"); i >= 0 {
|
||||||
buf.writes(s[:i+1])
|
buf.writes(s[:i+1])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,11 +26,6 @@ type EmbeddedString string
|
|||||||
// Trim removes the leading "Copyright etc" boilerplate.
|
// Trim removes the leading "Copyright etc" boilerplate.
|
||||||
func (e EmbeddedString) Trim() string {
|
func (e EmbeddedString) Trim() string {
|
||||||
s := string(e)
|
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 strings.HasPrefix(s, "// Copyright ") {
|
||||||
if i := strings.Index(s, "\n\n"); i >= 0 {
|
if i := strings.Index(s, "\n\n"); i >= 0 {
|
||||||
s = s[i+2:]
|
s = s[i+2:]
|
||||||
|
|||||||
Reference in new issue
Block a user