How can I implement feature toggles/functionality toggles in my CI/CD?

I am writing some micro services, which togehter offer several functionalities. What is a good way to create CI/CD for them, in Go, that also offers feature toggles (I can easily decide what functionality get deployed or not) ?

What is the Go way of doing this ?

You can use build tags: build package - go/build - Go Packages

Or something more traditional like gating on command line flags or environment variables.