Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for replace (0.3 sec)

  1. src/cmd/cgo/ast.go

    			}
    			for _, spec := range d.Specs {
    				if s, ok := spec.(*ast.ImportSpec); ok && s.Path.Value == `"C"` {
    					// Replace "C" with _ "unsafe", to keep program valid.
    					// (Deleting import statement or clause is not safe if it is followed
    					// in the source by an explicit semicolon.)
    					f.Edit.Replace(f.offset(s.Path.Pos()), f.offset(s.Path.End()), `_ "unsafe"`)
    				}
    			}
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    These special cases were introduced in Go 1.10. For auto-updating code
    from Go 1.9 and earlier, use the cftype or jni rewrites in the Go fix tool:
    
    	go tool fix -r cftype <pkg>
    	go tool fix -r jni <pkg>
    
    It will replace nil with 0 in the appropriate places.
    
    The EGLDisplay case was introduced in Go 1.12. Use the egl rewrite
    to auto-update code from Go 1.11 and earlier:
    
    	go tool fix -r egl <pkg>
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    		s = s[l:]
    	}
    	return t
    }
    
    // Replace returns a copy of the slice s with the first n
    // non-overlapping instances of old replaced by new.
    // If old is empty, it matches at the beginning of the slice
    // and after each UTF-8 sequence, yielding up to k+1 replacements
    // for a k-rune slice.
    // If n < 0, there is no limit on the number of replacements.
    func Replace(s, old, new []byte, n int) []byte {
    	m := 0
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. api/go1.12.txt

    pkg runtime/debug, type BuildInfo struct, Path string
    pkg runtime/debug, type Module struct
    pkg runtime/debug, type Module struct, Path string
    pkg runtime/debug, type Module struct, Replace *Module
    pkg runtime/debug, type Module struct, Sum string
    pkg runtime/debug, type Module struct, Version string
    pkg strings, func ReplaceAll(string, string, string) string
    pkg strings, method (*Builder) Cap() int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    			sph := append([]sparseEntry{}, hdr.SparseHoles...) // Copy sparse map
    			sph = alignSparseEntries(sph, hdr.Size)
    			spd = invertSparseEntries(sph, hdr.Size)
    
    			// Format the sparse map.
    			hdr.Size = 0 // Replace with encoded size
    			spb = append(strconv.AppendInt(spb, int64(len(spd)), 10), '\n')
    			for _, s := range spd {
    				hdr.Size += s.Length
    				spb = append(strconv.AppendInt(spb, s.Offset, 10), '\n')
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    If the divisor is zero at run time, a <a href="#Run_time_panics">run-time panic</a> occurs.
    If the dividend is non-negative and the divisor is a constant power of 2,
    the division may be replaced by a right shift, and computing the remainder may
    be replaced by a bitwise AND operation:
    </p>
    
    <pre>
     x     x / 4     x % 4     x &gt;&gt; 2     x &amp; 3
     11      2         3         2          3
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  7. doc/README.md

    	[CL 6789](/cl/6789)                # Gerrit changelists
    
    ## For the release team
    
    At the start of a release development cycle, the contents of `next` should be deleted
    and replaced with those of `initial`. From the repo root:
    
        > cd doc
        > rm -r next/*
        > cp -r initial/* next
    
    Then edit `next/1-intro.md` to refer to the next version.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 21:24:36 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg syscall (linux-386), const NLM_F_EXCL = 512
    pkg syscall (linux-386), const NLM_F_MATCH = 512
    pkg syscall (linux-386), const NLM_F_MULTI = 2
    pkg syscall (linux-386), const NLM_F_REPLACE = 256
    pkg syscall (linux-386), const NLM_F_REQUEST = 1
    pkg syscall (linux-386), const NLM_F_ROOT = 256
    pkg syscall (linux-386), const NOFLSH = 128
    pkg syscall (linux-386), const OCRNL = 8
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  9. doc/go_spec.html

    If the divisor is zero at run time, a <a href="#Run_time_panics">run-time panic</a> occurs.
    If the dividend is non-negative and the divisor is a constant power of 2,
    the division may be replaced by a right shift, and computing the remainder may
    be replaced by a bitwise AND operation:
    </p>
    
    <pre>
     x     x / 4     x % 4     x &gt;&gt; 2     x &amp; 3
     11      2         3         2          3
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  10. api/go1.21.txt

    pkg slices, func Min[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) $1 #60091
    pkg slices, func MinFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) $1 #60091
    pkg slices, func Replace[$0 interface{ ~[]$1 }, $1 interface{}]($0, int, int, ...$1) $0 #57433
    pkg slices, func Reverse[$0 interface{ ~[]$1 }, $1 interface{}]($0) #58565
    pkg slices, func Sort[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) #60091
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
Back to top