Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 239 for stringVar (0.72 sec)

  1. src/internal/coverage/encodecounter/encode.go

    type CoverageDataWriter struct {
    	stab    *stringtab.Writer
    	w       *bufio.Writer
    	csh     coverage.CounterSegmentHeader
    	tmp     []byte
    	cflavor coverage.CounterFlavor
    	segs    uint32
    	debug   bool
    }
    
    func NewCoverageDataWriter(w io.Writer, flav coverage.CounterFlavor) *CoverageDataWriter {
    	r := &CoverageDataWriter{
    		stab: &stringtab.Writer{},
    		w:    bufio.NewWriter(w),
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/fmt/stringer_example_test.go

    package fmt_test
    
    import (
    	"fmt"
    )
    
    // Animal has a Name and an Age to represent an animal.
    type Animal struct {
    	Name string
    	Age  uint
    }
    
    // String makes Animal satisfy the Stringer interface.
    func (a Animal) String() string {
    	return fmt.Sprintf("%v (%d)", a.Name, a.Age)
    }
    
    func ExampleStringer() {
    	a := Animal{
    		Name: "Gopher",
    		Age:  2,
    	}
    	fmt.Println(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 30 19:40:13 UTC 2018
    - 551 bytes
    - Viewed (0)
  3. operator/cmd/mesh/profile-diff.go

    	manifestsPath string
    }
    
    func addProfileDiffFlags(cmd *cobra.Command, args *profileDiffArgs) {
    	cmd.PersistentFlags().StringVarP(&args.manifestsPath, "charts", "", "", ChartsDeprecatedStr)
    	cmd.PersistentFlags().StringVarP(&args.manifestsPath, "manifests", "d", "", ManifestsFlagHelpStr)
    }
    
    func profileDiffCmd(pfArgs *profileDiffArgs) *cobra.Command {
    	return &cobra.Command{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

      // def-before-use), create a new cluster with that operation and move on.
      llvm::StringMap<SmallVector<Cluster>> all_clusters;
      // Map from operation to the cluster that contains the operation.
      llvm::DenseMap<Operation*, Cluster*> op_to_cluster_map;
    
      llvm::StringMap<Cluster> nearest_clusters;
      for (Operation& op : llvm::make_early_inc_range(block)) {
        if (is_ignored_op(&op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go

    	}
    
    	// If the type implements fmt.Formatter, we have nothing to check.
    	if isFormatter(typ) {
    		return true
    	}
    
    	// If we can use a string, might arg (dynamically) implement the Stringer or Error interface?
    	if m.t&argString != 0 && isConvertibleToString(typ) {
    		return true
    	}
    
    	if typ, _ := aliases.Unalias(typ).(*types.TypeParam); typ != nil {
    		// Avoid infinite recursion through type parameters.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. istioctl/pkg/clioptions/control_plane.go

    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    // (Currently just --revision)
    func (o *ControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command) {
    	cmd.PersistentFlags().StringVarP(&o.Revision, "revision", "r", "",
    		"Control plane revision")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 01 05:47:27 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. src/internal/coverage/decodemeta/decodefile.go

    	"internal/coverage/slicereader"
    	"internal/coverage/stringtab"
    	"io"
    	"os"
    )
    
    // CoverageMetaFileReader provides state and methods for reading
    // a meta-data file from a code coverage run.
    type CoverageMetaFileReader struct {
    	f          *os.File
    	hdr        coverage.MetaFileHeader
    	tmp        []byte
    	pkgOffsets []uint64
    	pkgLengths []uint64
    	strtab     *stringtab.Reader
    	fileRdr    *bufio.Reader
    	fileView   []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 14 22:30:23 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. test/fixedbugs/issue19548.dir/b.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    type Value interface {
    	a.Stringer
    	Addr() *a.Mode
    }
    
    var global a.Mode
    
    func f() int {
    	var v Value
    	v = &global
    	return int(v.String()[0])
    }
    
    func main() {
    	f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 00:27:13 UTC 2017
    - 353 bytes
    - Viewed (0)
  9. src/main/java/jcifs/pac/kerberos/KerberosTicket.java

                    while ( parts.hasMoreElements() ) {
                        Object part = parts.nextElement();
                        DERGeneralString stringPart = ASN1Util.as(DERGeneralString.class, part);
                        nameBuilder.append(stringPart.getString());
                        if ( parts.hasMoreElements() )
                            nameBuilder.append('/');
                    }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. src/internal/coverage/encodemeta/encodefile.go

    	"fmt"
    	"internal/coverage"
    	"internal/coverage/stringtab"
    	"io"
    	"os"
    	"unsafe"
    )
    
    // This package contains APIs and helpers for writing out a meta-data
    // file (composed of a file header, offsets/lengths, and then a series of
    // meta-data blobs emitted by the compiler, one per Go package).
    
    type CoverageMetaFileWriter struct {
    	stab   stringtab.Writer
    	mfname string
    	w      *bufio.Writer
    	tmp    []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top