Skip to content

Instantly share code, notes, and snippets.

@goyaljai
Created January 31, 2023 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyaljai/485b467bf3efd549f80e406a2521b31f to your computer and use it in GitHub Desktop.
Save goyaljai/485b467bf3efd549f80e406a2521b31f to your computer and use it in GitHub Desktop.
main.go
function main() {
c, args, err := getCommand(os.Args)
...
buildCtx := build.Context{ContextImpl: &build.ContextImpl{
Context: ctx,
Logger: log,
Metrics: met,
Tracer: trace,
Writer: output,
Status: stat,
}}
config := c.config(buildCtx, args...)
...
build.FindSources(buildCtx, config, f)
...
c.run(buildCtx, config, args, logsDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment