Avatar Ilya Mateyko

go.astrophena.name/base Module

GitHub repository | Commit (eb6910d)

Base Go packages for my projects.

addcopyright

Install this program:

$ go install go.astrophena.name/base/devtools/addcopyright@latest

Addcopyright adds a copyright header to specified files.

It recursively walks through the current directory and checks if a file, based on its extension, should have a copyright header. If the header is missing, the tool prepends a copyright notice based on a template.

The tool is configured through a .devtools.txtar file in the project's root directory. This file is a txtar archive and can contain the following files: