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 tointernal
. - Renames the
main
func toRunMain
- Replaces any
log.Fatal
withpanic
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.