Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for clone (0.64 sec)

  1. src/cmd/distpack/pack.go

    		h.Name = f.Name
    		if err := tw.WriteHeader(h); err != nil {
    			panic(err)
    		}
    		r := check(os.Open(f.Src))
    		check(io.Copy(tw, r))
    		check1(r.Close())
    	}
    	f.Name = ""
    	check1(tw.Close())
    	check1(zw.Close())
    	check1(out.Close())
    	reportHash(name)
    }
    
    // writeZip writes the archive in zip form to the file named name.
    func writeZip(name string, a *Archive) {
    	out, err := os.Create(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    		// untyped types are basic types
    		if x.(*Basic).kind > y.(*Basic).kind {
    			return x
    		}
    		return y
    	}
    	return nil
    }
    
    // clone makes a "flat copy" of *p and returns a pointer to the copy.
    func clone[P *T, T any](p P) P {
    	c := *p
    	return &c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeset.go

    	//
    	// If we don't care to provide this identity guarantee anymore, instead of
    	// reusing the original method in embeddings, we can clone the method's Func
    	// Object and give it the position of a corresponding embedded interface. Then
    	// we can get rid of the mpos map below and simply use the cloned method's
    	// position.
    
    	var seen objset
    	var allMethods []*Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/help/helpdoc.go

    If that page contains the meta tag
    
    	<meta name="go-import" content="example.org git https://code.org/r/p/exproj">
    
    the go tool will verify that https://example.org/?go-get=1 contains the
    same meta tag and then git clone https://code.org/r/p/exproj into
    GOPATH/src/example.org.
    
    When using GOPATH, downloaded packages are written to the first directory
    listed in the GOPATH environment variable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/call.go

    				// function argument and thus the function object.
    				// Before we change the type (type parameter renaming, below), make
    				// a clone of it as otherwise we implicitly modify the object's type
    				// (go.dev/issues/63260).
    				asig = clone(asig)
    				// Rename type parameters for cases like f(g, g); this gives each
    				// generic function argument a unique type identity (go.dev/issues/59956).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg.go

    					*p1 = *p
    					// Unalias the Imports and Internal.Imports slices,
    					// which we're going to modify. We don't copy other slices as
    					// we don't change them.
    					p1.Imports = slices.Clone(p.Imports)
    					p1.Internal.Imports = slices.Clone(p.Internal.Imports)
    					p1.Internal.ForMain = pmain.ImportPath
    					visited[p] = p1
    					p = p1
    				} else {
    					visited[p] = p
    				}
    				p.Internal.PGOProfile = file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  7. src/cmd/go/alldocs.go

    //		Set to 0 to disable external linking mode, 1 to enable it.
    //	GIT_ALLOW_PROTOCOL
    //		Defined by Git. A colon-separated list of schemes that are allowed
    //		to be used with git fetch/clone. If set, any scheme not explicitly
    //		mentioned will be considered insecure by 'go get'.
    //		Because the variable is defined by Git, the default value cannot
    //		be set using 'go env -w'.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  8. src/cmd/asm/main.go

    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    	// Create object file, write header.
    	buf, err := bio.Create(*flags.OutputFile)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer buf.Close()
    
    	if !*flags.SymABIs {
    		buf.WriteString(objabi.HeaderString())
    		fmt.Fprintf(buf, "!\n")
    	}
    
    	// Set macros for GOEXPERIMENTs so we can easily switch
    	// runtime assembly code based on them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	if err != nil && err != ErrWriteTooLong {
    		tw.err = err
    	}
    	return n, err
    }
    
    // Close closes the tar archive by flushing the padding, and writing the footer.
    // If the current file (from a prior call to [Writer.WriteHeader]) is not fully written,
    // then this returns an error.
    func (tw *Writer) Close() error {
    	if tw.err == ErrWriteAfterClose {
    		return nil
    	}
    	if tw.err != nil {
    		return tw.err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    	if cfg.DebugTrace != "" {
    		var close func() error
    		var err error
    		ctx, close, err = trace.Start(ctx, cfg.DebugTrace)
    		if err != nil {
    			base.Fatalf("failed to start trace: %v", err)
    		}
    		defer func() {
    			if err := close(); err != nil {
    				base.Fatalf("failed to stop trace: %v", err)
    			}
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top