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

Method GetState

github/github-accessors.go:1010–1015  ·  view source on GitHub ↗

GetState returns the State field if it's non-nil, zero value otherwise.

()

Source from the content-addressed store, hash-verified

1008
1009// GetState returns the State field if it's non-nil, zero value otherwise.
1010func (a *Alert) GetState() string {
1011 if a == nil || a.State == nil {
1012 return ""
1013 }
1014 return *a.State
1015}
1016
1017// GetTool returns the Tool field.
1018func (a *Alert) GetTool() *Tool {

Callers 3

TestAlert_GetStateFunction · 0.95
EditMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestAlert_GetStateFunction · 0.76