Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Excluding ¶
type Excluding []Match
func (Excluding) MarshalJSON ¶
func (*Excluding) UnmarshalJSON ¶
type Match ¶
type Match struct {
Stdlib bool `json:"stdlib,omitzero"`
Package StringMatch `json:"package,omitzero"`
Type StringMatch `json:"type,omitzero"`
Function StringMatch `json:"func,omitzero"`
Global StringMatch `json:"global,omitzero"`
Init bool `json:"init,omitzero"`
Foreign bool `json:"foreign,omitzero"`
}
type Rule ¶
type Rule struct {
Match
Description string `json:"description,omitzero"`
Trusted bool `json:"trusted,omitempty"`
Expected []string `json:"expected,omitempty"`
Encapsulates []string `json:"encapsulates,omitempty"`
Has []string `json:"has,omitempty"`
Excluding Excluding `json:"excluding,omitempty"`
// contains filtered or unexported fields
}
type StringMatch ¶
type StringMatch struct {
// contains filtered or unexported fields
}
func ExactString ¶
func ExactString(val string) StringMatch
func (StringMatch) IsZero ¶
func (m StringMatch) IsZero() bool
func (StringMatch) MarshalJSON ¶
func (m StringMatch) MarshalJSON() ([]byte, error)
func (*StringMatch) Match ¶
func (m *StringMatch) Match(val string) bool
func (*StringMatch) MatchNothing ¶
func (m *StringMatch) MatchNothing() bool
func (*StringMatch) UnmarshalJSON ¶
func (m *StringMatch) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.