licenses

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 2 Imported by: 0

README

licenses

License and third-party notice management.

Responsibility

Embeds and provides access to:

  • Melange's own license text
  • Third-party dependency licenses and notices

Used by the CLI to display license information and comply with open source license requirements.

Architecture Role

cmd/melange
       │
       └── internal/licenses
               │
               ├── assets/LICENSE
               ├── assets/THIRD_PARTY_NOTICES
               └── third_party/ (vendored license files)

Generation

Third-party notices are generated via go generate:

//go:generate go run github.com/google/go-licenses@v1.6.0 save ...
//go:generate go run gen_notice.go

This scans dependencies and collects their licenses into the embedded assets.

Key Functions

  • LicenseText() - Returns Melange's license
  • ThirdPartyText() - Returns aggregated third-party notices

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LicenseText

func LicenseText() string

func ThirdPartyText

func ThirdPartyText() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL