Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isEmpty (0.15 sec)

  1. internal/event/config.go

    	Name  string `xml:"Name"`
    	Value string `xml:"Value"`
    }
    
    func (filter FilterRule) isEmpty() bool {
    	return filter.Name == "" && filter.Value == ""
    }
    
    // MarshalXML implements a custom marshaller to support `omitempty` feature.
    func (filter FilterRule) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if filter.isEmpty() {
    		return nil
    	}
    	type filterRuleWrapper FilterRule
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  2. internal/config/config.go

    	if !found {
    		// Check for sub-prefix only if the input value is only a
    		// single value, this rejects invalid inputs if any.
    		found = !SubSystems.FuncMatch(strings.HasPrefix, subSystemValue[0]).IsEmpty() && len(subSystemValue) == 1
    	}
    	if !found {
    		return nil, Errorf("unknown sub-system %s", s)
    	}
    
    	targets := Targets{}
    	subSysPrefix := subSystemValue[0]
    	if len(subSystemValue) == 2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top