- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 197 for original (0.13 sec)
-
src/cmd/internal/bootstrap_test/overlaydir_test.go
if err != nil { return err } perm = info.Mode() & os.ModePerm } // Always make copies of directories. // If we add a file in the overlay, we don't want to add it in the original. if info.IsDir() { return os.MkdirAll(dstPath, perm|0200) } // If we can use a hard link, do that instead of copying bytes. // Go builds don't like symlinks in some cases, such as go:embed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:35:05 UTC 2023 - 2.1K bytes - Viewed (0) -
src/go/printer/example_test.go
// file set fset. funcAST, fset := parseFunc("example_test.go", "printSelf") // Print the function body into buffer buf. // The file set is provided to the printer so that it knows // about the original source formatting and can add additional // line breaks where they were present in the source. var buf bytes.Buffer printer.Fprint(&buf, fset, funcAST.Body) // Remove braces {} enclosing the function body, unindent,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:55:02 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/fuzz/minimize.go
if shouldStop() { return } for _, pc := range printableChars { v[i] = pc if try(v) { // Successful. Move on to the next byte in v. break } // Unsuccessful. Revert v[i] back to original value. v[i] = b } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 21:15:51 UTC 2021 - 2.3K bytes - Viewed (0) -
src/cmd/go/internal/par/work_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
// constant initialization expression, pos is the position of // the original expression, and not of the currently declared // constant identifier. Use the provided errpos instead. // TODO(gri) We may also want to augment the error message and // refer to the position (pos) in the original expression. if check.errpos.Pos().IsKnown() { assert(check.iota != nil) pos = check.errpos }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/syscall/mksyscall_windows.go
// not feasible to do so at the moment: std-vendored libraries are included // in the "std" meta-pattern (because in general they *are* linked into // users binaries separately from the original import paths), and we can't // allow a binary in the "std" meta-pattern. modArgs = []string{"-mod=readonly"} } else { // Nobody outside the standard library should be using this wrapper: other
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2K bytes - Viewed (0) -
src/internal/types/testdata/check/issues1.go
// parameter's type set. type T1[P interface{~uint}] struct{} func _[P any]() { _ = T1[P /* ERROR "P does not satisfy interface{~uint}" */ ]{} } // This is the original (simplified) program causing the same issue. type Unsigned interface { ~uint } type T2[U Unsigned] struct { s U } func (u T2[U]) Add1() U { return u.s + 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:56:37 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/objdump/main.go
// // file:line // address: assembly // address: assembly // ... // // Each stanza gives the disassembly for a contiguous range of addresses // all mapped to the same original source file and line number. // This mode is intended for use by pprof. package main import ( "flag" "fmt" "log" "os" "regexp" "strconv" "strings" "cmd/internal/objfile"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.7K bytes - Viewed (0) -
src/math/log1p.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math // The original C code, the long comment, and the constants // below are from FreeBSD's /usr/src/lib/msun/src/s_log1p.c // and came with this notice. The go code is a simplified // version of the original C. // // ==================================================== // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/umask_unix.go
func sysWriteBits() fs.FileMode { // Read current umask. There's no way to read it without also setting it, // so set it conservatively and then restore the original one. m := syscall.Umask(0o777) syscall.Umask(m) // restore bits if m&0o22 == 0o22 { // group and world are unwritable by default return 0o700 } if m&0o2 == 0o2 { // group is writable by default, but not world
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 15:44:08 UTC 2023 - 896 bytes - Viewed (0)