MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / exitErrorf

Function exitErrorf

go/example_code/ec2/ec2_create_security_group.go:123–126  ·  view source on GitHub ↗

snippet-start:[ec2.go.create_security_group.exit]

(msg string, args ...interface{})

Source from the content-addressed store, hash-verified

121
122// snippet-start:[ec2.go.create_security_group.exit]
123func exitErrorf(msg string, args ...interface{}) {
124 fmt.Fprintf(os.Stderr, msg+"\n", args...)
125 os.Exit(1)
126}
127
128// snippet-end:[ec2.go.create_security_group.exit]
129// snippet-end:[ec2.go.create_security_group.complete]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected