Skip to content

Commit

Permalink
format tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Aug 31, 2024
1 parent c7286b7 commit 76b6a3e
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions util/tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.`

const tmplGPLThreeOrLater = `Copyright (C) {{ .Year }} {{ .Holder }}
const tmplGPLThreeOrLater = `Copyright (C) {{ .Year }} {{ .Holder }}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -115,18 +115,25 @@ the Free Software Foundation, either version 3 of the License, or
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.`
const tmplGPLThreeOnly = `Copyright (C) {{ .Year }} {{ .Holder }}
along with this program. If not, see <https://www.gnu.org/licenses/>.`

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
const tmplGPLThreeOnly = `Copyright (C) {{ .Year }} {{ .Holder }}
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.`
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.`

const tmplSPDXIDs = `{{ if .Holder }}Copyright{{ if .Year }} {{ .Year }}{{ end }} {{ .Holder }}
{{ end }}SPDX-License-Identifier: {{ .SPDXIDs }}`

0 comments on commit 76b6a3e

Please sign in to comment.