func init()

in reference-architectures/cloud_deploy_flow/CloudFunctions/cloudDeployApprovals/main.go [73:79]


func init() {
	functions.CloudEvent("cloudDeployApprovals", cloudDeployApprovals) // Registers the function as a CloudEvent handler
	// Load environment variables into the config struct
	if err := env.Set(&c); err != nil {
		_ = fmt.Errorf("error getting env: %s", err) // Logs error if environment variables are missing
	}
}