https://github.com/bep/mclib
A simple library to make it possible to run Mkcert's main method.
https://github.com/bep/mclib
Last synced: about 1 month ago
JSON representation
A simple library to make it possible to run Mkcert's main method.
- Host: GitHub
- URL: https://github.com/bep/mclib
- Owner: bep
- License: mit
- Created: 2023-06-03T12:33:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T09:01:45.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T13:48:13.857Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/bep/mclib/actions?query=workflow:Test)
[](https://goreportcard.com/report/github.com/bep/mclib)
[](https://godoc.org/github.com/bep/mclib)
This is a simple library to make it possible to run [Mkcert's](https://github.com/FiloSottile/mkcert) `main` method.
The script that updates the `internal` package does no logic changes to the source, it simply
1. Renames the `main` package to `internal`.
1. Renames the `main` func to `RunMain`
1. Replaces any `log.Fatal` with `panic` to allow us to handle the errors.
1. Exports getCAROOT().
For more advanced library usage, see [this issue](https://github.com/FiloSottile/mkcert/issues/45).
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:
```bash
go generate ./gen
```
We use [semverpair](https://github.com/bep/semverpair) versioning.