The `prep` tool for Golang enables compile-time function evaluation by replacing function calls with computed results during the build process. It can be integrated easily as a Go library or standalone executable and works with basic literals. To use it, install `prep` and use the `-toolexec` flag in your `go build` command to evaluate functions marked with `prep.Comptime`.

2m read timeFrom github.com
Post cover image
Table of contents
FeaturesInstallationUsageLimitationsMotivation
3 Comments

Sort: