Unlicens the code and add SPDX identifier to files

This commit is contained in:
2024-09-18 16:28:53 -06:00
parent 51eab78878
commit 1436be3c10
18 changed files with 56 additions and 16 deletions

View File

@ -1,3 +1,5 @@
{{/* SPDX-License-Identifier: Unlicense */ -}}
{{define "fparams" -}}
{{with $max := .}}{{range .Count}} f{{.}} func(T{{.}}) Parser[In, {{if eq . $max}}Out{{else}}T{{.Next}}{{end}}],
{{end}}{{end}}{{end -}}
@ -31,6 +33,8 @@ func Bind{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package {{.Package}}
{{range .Count}}
{{template "func" .}}

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Unlicense
package main
import (

View File

@ -1,3 +1,5 @@
{{/* SPDX-License-Identifier: Unlicense */ -}}
{{define "func"}}{{if gt . 1 -}}
func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
{{- range .Count}}
@ -28,6 +30,8 @@ func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
// GENERATED FILE. DO NOT EDIT.
// SPDX-License-Identifier: Unlicense
package {{.Package}}
{{range .Count}}{{template "func" .}}