diff --git a/cmd/exceptions.go b/cmd/exceptions.go index bbafc30..04c93a4 100644 --- a/cmd/exceptions.go +++ b/cmd/exceptions.go @@ -51,9 +51,9 @@ func extractExceptionLicenseIDs() error { // generate the GetExceptions() function in get_exceptions.go getExceptionsContents := []byte(`package spdxlicenses - func GetExceptions() []string { - return []string{ - `) +func GetExceptions() []string { + return []string{ +`) for _, id := range exceptionLicenseIDs { getExceptionsContents = append(getExceptionsContents, ` "`+id+`", `...) @@ -66,6 +66,7 @@ func extractExceptionLicenseIDs() error { if err != nil { return err } + fmt.Println("Writing `../spdxexp/spdxlicenses/get_exceptions.go`... COMPLETE") return nil } diff --git a/cmd/license.go b/cmd/license.go index 6d96bd3..ca15e40 100644 --- a/cmd/license.go +++ b/cmd/license.go @@ -56,9 +56,9 @@ func extractLicenseIDs() error { // generate the GetLicenses() function in get_licenses.go getLicensesContents := []byte(`package spdxlicenses - func GetLicenses() []string { - return []string{ - `) +func GetLicenses() []string { + return []string{ +`) for _, id := range activeLicenseIDs { getLicensesContents = append(getLicensesContents, ` "`+id+`", `...) @@ -71,13 +71,14 @@ func extractLicenseIDs() error { if err != nil { return err } + fmt.Println("Writing `../spdxexp/spdxlicenses/get_licenses.go`... COMPLETE") // generate the GetDeprecated() function in get_deprecated.go getDeprecatedContents := []byte(`package spdxlicenses - func GetDeprecated() []string { - return []string{ - `) +func GetDeprecated() []string { + return []string{ +`) for _, id := range deprecatedLicenseIDs { getDeprecatedContents = append(getDeprecatedContents, ` "`+id+`", `...) @@ -90,6 +91,7 @@ func extractLicenseIDs() error { if err != nil { return err } + fmt.Println("Writing `../spdxexp/spdxlicenses/get_deprecated.go`... COMPLETE") return nil }