Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dumpslice (0.1 sec)

  1. cmd/batch-handlers.go

    // UnmarshalYAML - to support prefix field yaml unmarshalling with string or slice of strings
    func (b *BatchJobPrefix) UnmarshalYAML(value *yaml.Node) error {
    	// try slice first
    	tmpSlice := []string{}
    	if err := value.Decode(&tmpSlice); err == nil {
    		*b = tmpSlice
    		return nil
    	}
    	// try string
    	tmpStr := ""
    	if err := value.Decode(&tmpStr); err == nil {
    		*b = []string{tmpStr}
    		return nil
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
Back to top