@@ -66,20 +66,20 @@ var (
6666// its input is an info structure.
6767var licenseT = template .Must (template .New ("" ).Parse (`
6868// Copyright {{.Year}} The go-ethereum Authors
69- // This file is part of go-ethereum .
69+ // This file is part of {{.Whole false}} .
7070//
7171// go-ethereum is free software: you can redistribute it and/or modify
7272// it under the terms of the GNU {{.License}} as published by
7373// the Free Software Foundation, either version 3 of the License, or
7474// (at your option) any later version.
7575//
76- // go-ethereum is distributed in the hope that it will be useful,
76+ // {{.Whole true}} is distributed in the hope that it will be useful,
7777// but WITHOUT ANY WARRANTY; without even the implied warranty of
78- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
78+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7979// GNU {{.License}} for more details.
8080//
8181// You should have received a copy of the GNU {{.License}}
82- // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
82+ // along with {{.Whole false}}. If not, see <http://www.gnu.org/licenses/>.
8383
8484` [1 :]))
8585
@@ -91,17 +91,25 @@ type info struct {
9191func (i info ) License () string {
9292 if i .gpl () {
9393 return "General Public License"
94- } else {
95- return "Lesser General Public License"
9694 }
95+ return "Lesser General Public License"
9796}
9897
9998func (i info ) ShortLicense () string {
10099 if i .gpl () {
101100 return "GPL"
102- } else {
103- return "LGPL"
104101 }
102+ return "LGPL"
103+ }
104+
105+ func (i info ) Whole (startOfSentence bool ) string {
106+ if i .gpl () {
107+ return "go-ethereum"
108+ }
109+ if startOfSentence {
110+ return "The go-ethereum library"
111+ }
112+ return "the go-ethereum library"
105113}
106114
107115func (i info ) gpl () bool {
0 commit comments