func main()

in main_windows.go [109:127]


func main() {
	// determine if running as a windows service
	inService, err := svc.IsWindowsService()
	if err != nil {
		os.Exit(99) // failed to determine service status
	}

	// running as service?
	if inService {
		err := svc.Run("cloud-sql-proxy", &windowsService{})
		if err != nil {
			os.Exit(100) // failed to execute service
		}
		return
	}

	// run as commandline
	cmd.Execute()
}