Go build flag example Simply just run make && bin/BuildFlagTest. The Makefile shows an example of how to use ldflags to inject build information to your application.