Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for argsToAttr (0.22 sec)

  1. src/log/slog/attr.go

    	return Attr{key, GroupValue(argsToAttrSlice(args)...)}
    }
    
    func argsToAttrSlice(args []any) []Attr {
    	var (
    		attr  Attr
    		attrs []Attr
    	)
    	for len(args) > 0 {
    		attr, args = argsToAttr(args)
    		attrs = append(attrs, attr)
    	}
    	return attrs
    }
    
    // Any returns an Attr for the supplied value.
    // See [AnyValue] for how values are treated.
    func Any(key string, value any) Attr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 18:23:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top