Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for slice (0.16 sec)

  1. doc/go1.17_spec.html

    a slice of length up to that capacity can be created by
    <a href="#Slice_expressions"><i>slicing</i></a> a new one from the original slice.
    The capacity of a slice <code>a</code> can be discovered using the
    built-in function <a href="#Length_and_capacity"><code>cap(a)</code></a>.
    </p>
    
    <p>
    A new, initialized slice value for a given element type <code>T</code> is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Phi (Const32 [c]) (Const32 [c])) => (Const32 [c])
    (Phi (Const64 [c]) (Const64 [c])) => (Const64 [c])
    
    // slice and interface comparisons
    // The frontend ensures that we can only compare against nil,
    // so we need only compare the first word (interface type or slice ptr).
    (EqInter x y)  => (EqPtr  (ITab x) (ITab y))
    (NeqInter x y) => (NeqPtr (ITab x) (ITab y))
    (EqSlice x y)  => (EqPtr  (SlicePtr x) (SlicePtr y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    					}
    					p1 := new(Package)
    					*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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    		if !slices.Contains(ldflags, "-no-pie") {
    			// we need to use -pie for Linux/ARM to get accurate imported sym (added in https://golang.org/cl/5989058)
    			// this seems to be outdated, but we don't want to break existing builds depending on this (Issue 45940)
    			ldflags = append(ldflags, "-pie")
    		}
    		if slices.Contains(ldflags, "-pie") && slices.Contains(ldflags, "-static") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top