license

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package license provides functions for generating license header text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasHeader added in v0.8.4

func HasHeader(content []byte) bool

HasHeader returns true if the content contains the Apache 2.0 license header. It checks for the presence of a specific, static line from the license text.

func Header(year string) []string

Header returns the license header with the given year.

func HeaderBulk

func HeaderBulk() []string

HeaderBulk returns the bulk of the license header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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