Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isEmptyGroup (0.12 sec)

  1. src/log/slog/record.go

    	for _, a := range attrs[i:] {
    		if !a.Value.isEmptyGroup() {
    			r.back = append(r.back, a)
    		}
    	}
    }
    
    // Add converts the args to Attrs as described in [Logger.Log],
    // then appends the Attrs to the [Record]'s list of Attrs.
    // It omits empty groups.
    func (r *Record) Add(args ...any) {
    	var a Attr
    	for len(args) > 0 {
    		a, args = argsToAttr(args)
    		if a.Value.isEmptyGroup() {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top