Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1011 - 1020 of 1,123 for Nil (0.02 sec)

  1. logger/logger.go

    //nolint:cyclop
    func (l *logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) {
    	if l.LogLevel <= Silent {
    		return
    	}
    
    	elapsed := time.Since(begin)
    	switch {
    	case err != nil && l.LogLevel >= Error && (!errors.Is(err, ErrRecordNotFound) || !l.IgnoreRecordNotFoundError):
    		sql, rows := fc()
    		if rows == -1 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Nov 07 02:19:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. src/arena/arena.go

    func (a *Arena) Free() {
    	runtime_arena_arena_Free(a.a)
    	a.a = nil
    }
    
    // New creates a new *T in the provided arena. The *T must not be used after
    // the arena is freed. Accessing the value after free may result in a fault,
    // but this fault is also not guaranteed.
    func New[T any](a *Arena) *T {
    	return runtime_arena_arena_New(a.a, reflectlite.TypeOf((*T)(nil))).(*T)
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 12 20:23:36 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. cni/pkg/install/binaries_test.go

    			for filename, contents := range c.existingFiles {
    				file.WriteOrFail(t, filepath.Join(targetDir, filename), []byte(contents))
    			}
    
    			binariesCopied, err := copyBinaries(srcDir, []string{targetDir})
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			for filename, expectedContents := range c.expectedFiles {
    				contents := file.AsStringOrFail(t, filepath.Join(targetDir, filename))
    				assert.Equal(t, contents, expectedContents)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 20 18:34:43 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. migrator/column_type.go

    	return ct.UniqueValue.Bool, ct.UniqueValue.Valid
    }
    
    // ScanType returns a Go type suitable for scanning into using Rows.Scan.
    func (ct ColumnType) ScanType() reflect.Type {
    	if ct.ScanTypeValue != nil {
    		return ct.ScanTypeValue
    	}
    	return ct.SQLColumnType.ScanType()
    }
    
    // Comment returns the comment of current column.
    func (ct ColumnType) Comment() (value string, ok bool) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Mar 24 01:31:58 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  5. cmd/update-notifier.go

    	// termWidth is set to a default one to use when we are
    	// not able to calculate terminal width via OS syscalls
    	termWidth := 25
    	if width, err := pb.GetTerminalWidth(); err == nil {
    		termWidth = width
    	}
    
    	// Box cannot be printed if terminal width is small than maxContentWidth
    	if maxContentWidth > termWidth {
    		return "\n" + line1InColor + "\n" + line2InColor + "\n\n"
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. istioctl/pkg/util/formatting/formatter.go

    	}
    }
    
    // Print output messages in the specified format with color options
    func Print(ms diag.Messages, format string, colorize bool) (string, error) {
    	switch format {
    	case LogFormat:
    		return printLog(ms, colorize), nil
    	case JSONFormat:
    		return printJSON(ms)
    	case YAMLFormat:
    		return printYAML(ms)
    	default:
    		return "", fmt.Errorf("invalid format, expected one of %v but got %q", MsgOutputFormatKeys, format)
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 11 02:41:45 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. cmd/metrics-v3-handler.go

    				matchingMG[collPath] = v
    			} else if v, ok := h.metricsData.bucketMGMap[collPath]; ok {
    				matchingMG[collPath] = v
    			}
    		}
    	}
    
    	if len(matchingMG) == 0 {
    		return nil
    	}
    
    	var metrics []metricDisplay
    	for _, collectorPath := range h.metricsData.collectorPaths {
    		if mg, ok := matchingMG[collectorPath]; ok {
    			var commonLabels []string
    			for k := range mg.ExtraLabels {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. cmd/metrics-v3-system-network.go

    		m.Set(internodeDialAvgTimeNanos, float64(rpcStats.DialAvgDuration))
    		m.Set(internodeSentBytesTotal, float64(connStats.internodeOutputBytes))
    		m.Set(internodeRecvBytesTotal, float64(connStats.internodeInputBytes))
    	}
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/ecds_test.go

    	// protojson opt out of whitespace randomization, see more details: https://github.com/golang/protobuf/issues/1082
    	var rm json.RawMessage = gotOut.Bytes()
    	jsonOutput, err := json.MarshalIndent(rm, "", "    ")
    	if err != nil {
    		assert.NoError(t, err)
    	}
    	jsonOutput = append(jsonOutput, '\n')
    
    	util.CompareContent(t, jsonOutput, "testdata/ecds/output.json")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Dec 13 01:08:07 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  10. internal/s3select/jstream/errors.go

    func (e DecoderError) Error() string {
    	loc := fmt.Sprintf("%s [%d,%d]", quoteChar(e.atChar), e.pos[0], e.pos[1])
    	s := fmt.Sprintf("%s %s: %s", e.msg, e.context, loc)
    	if e.readerErr != nil {
    		s += "\nreader error: " + e.readerErr.Error()
    	}
    	return s
    }
    
    // quoteChar formats c as a quoted character literal
    func quoteChar(c byte) string {
    	// special cases - different from quoted strings
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top