Skip to content

🟢 v0.7.2

Latest
Compare
Choose a tag to compare
@kuritka kuritka released this 20 Dec 13:02

GoLic has been extended with wildcard support.

We can generate a license one line below the first text that meets the condition defined in the rule.

For example: the following built-in rule generates a license under package.

    .go:
      prefix: "\n/*"
      suffix: "*/"
      under:
        - "package *"

Except * we support ? wildcard. e.g: Mi??isip* which matches with Missisippi or Middisippi123.
Of course you can override any rules or define new one. If the rule is not matched or defined, the license is generated on top of the file as a earlier.