What does "// +build omit" do?

I see this
’’’
// +build OMIT

at the beginning of many go code examples. When I remove it I can build. My real question is this part of the “go build” or another build process?
What other options does “+build” have if so?

+build is implemented by the Go tool, not the compiler, to filter files passed to the compiler for build or test

https://dave.cheney.net/2018/01/08/gos-hidden-pragmas

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.