This is a simple library to make it possible to run Mkcert's main
method.
The script that updates the internal
package does no logic changes to the source, it simply
- Renames the
main
package to internal
.
- Renames the
main
func to RunMain
- Replaces any
log.Fatal
with panic
to allow us to handle the errors.
- Exports getCAROOT().
For more advanced library usage, see this issue.
The mkcert
source code is stored in a Git submodule to a tagged version, so to generate a new version, you need to clone this repo with --recursive
, and then run:
go generate ./gen
We use semverpair versioning.