ceph-csi/vendor/go.uber.org/tools/update-license
Madhu Rajanna d5a0606c33 Migrate from dep to go module
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-03-17 10:44:07 +00:00
..
.gitignore Migrate from dep to go module 2020-03-17 10:44:07 +00:00
licenses.go Update to kube v1.17 2020-01-17 12:06:02 +00:00
main.go Update to kube v1.17 2020-01-17 12:06:02 +00:00
README.md Migrate from dep to go module 2020-03-17 10:44:07 +00:00

update-license

This is a small tool that updates the license header for Uber's open source Golang files.

Installation

go get go.uber.org/tools/update-license

Usage

update-license go_files...

Further Work

  • Support more licenses by name (MIT, Apache 2.0, etc), file path, url (http GET)
  • Support custom owner (not just "Uber Technologies, Inc.")
  • Support more languages than go (cover go, java, js, py to start, along with LICENSE, LICENSE.txt)
  • Talk about removing custom logic for header comments (ie @generated, Code generated by), it probably makes more sense just to put the license at the top
  • Better detection support for existing licenses so they can be removed
  • Verbose, dry run support