MCPcopy Index your code
hub / github.com/google/go-github / requireFlag

Function requireFlag

example/auditlogstream/main.go:175–179  ·  view source on GitHub ↗
(name, val string)

Source from the content-addressed store, hash-verified

173}
174
175func requireFlag(name, val string) {
176 if val == "" {
177 log.Fatalf("flag -%v is required", name)
178 }
179}
180
181func requireIntFlag(name string, val int64) {
182 if val == 0 {

Callers 2

parseAndInitFunction · 0.85
runCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…