Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Mine (0.33 sec)

  1. src/bufio/scan.go

    	}
    	return data
    }
    
    // ScanLines is a split function for a [Scanner] that returns each line of
    // text, stripped of any trailing end-of-line marker. The returned line may
    // be empty. The end-of-line marker is one optional carriage return followed
    // by one mandatory newline. In regular expression notation, it is `\r?\n`.
    // The last non-empty line of input will be returned even if it has no
    // newline.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/cmd/addr2line/addr2line_test.go

    	}
    	if !os.SameFile(fi1, fi2) {
    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "124"; srcLineNo != want {
    		t.Fatalf("line number = %v; want %s", srcLineNo, want)
    	}
    }
    
    // This is line 123. The test depends on that.
    func TestAddr2Line(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	tmpDir, err := os.MkdirTemp("", "TestAddr2Line")
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/godefs.go

    	if err != nil {
    		return "<" + err.Error() + ">"
    	}
    	return gofmtBuf.String()
    }
    
    // gofmtLineReplacer is used to put a gofmt-formatted string for an
    // AST expression onto a single line. The lexer normally inserts a
    // semicolon at each newline, so we can replace newline with semicolon.
    // However, we can't do that in cases where the lexer would not insert
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. src/archive/zip/struct.go

    func timeZone(offset time.Duration) *time.Location {
    	const (
    		minOffset   = -12 * time.Hour  // E.g., Baker island at -12:00
    		maxOffset   = +14 * time.Hour  // E.g., Line island at +14:00
    		offsetAlias = 15 * time.Minute // E.g., Nepal at +5:45
    	)
    	offset = offset.Round(offsetAlias)
    	if offset < minOffset || maxOffset < offset {
    		offset = 0
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  5. doc/godebug.md

    	//go:debug panicnil=1
    
    Starting in Go 1.21, the Go toolchain treats a `//go:debug` directive
    with an unrecognized GODEBUG setting as an invalid program.
    Programs with more than one `//go:debug` line for a given setting
    are also treated as invalid.
    (Older toolchains ignore `//go:debug` directives entirely.)
    
    The defaults that will be compiled into a main package
    are reported by the command:
    
    {{raw `
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	{" Aaa Aaa Aaa ", " Aaa Aaa Aaa "},
    	{"123a456", "123a456"},
    	{"double-blind", "Double-Blind"},
    	{"ÿøû", "Ÿøû"},
    	{"with_underscore", "With_underscore"},
    	{"unicode \xe2\x80\xa8 line separator", "Unicode \xe2\x80\xa8 Line Separator"},
    }
    
    func TestTitle(t *testing.T) {
    	for _, tt := range TitleTests {
    		if s := string(Title([]byte(tt.in))); s != tt.out {
    			t.Errorf("Title(%q) = %q, want %q", tt.in, s, tt.out)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    	<preamble>
    	#line 1 "not-declared"
    	void __cgo_f_1_1(void) { __typeof__(foo) *__cgo_undefined__1; }
    	#line 1 "not-type"
    	void __cgo_f_1_2(void) { foo *__cgo_undefined__2; }
    	#line 1 "not-int-const"
    	void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (foo)*1 }; }
    	#line 1 "not-num-const"
    	void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (foo); }
    	#line 1 "not-str-lit"
    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)
  8. src/bufio/bufio_test.go

    	}
    	data = data[len(line):]
    	line, isPrefix, err = l.ReadLine()
    	if isPrefix || !bytes.Equal(line, data[:minReadBufferSize/2]) || err != nil {
    		t.Errorf("bad result for third line: got %q want %q %v", line, data[:minReadBufferSize/2], err)
    	}
    	line, isPrefix, err = l.ReadLine()
    	if isPrefix || err == nil {
    		t.Errorf("expected no more lines: %x %s", line, err)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/ast.go

    						fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath)
    					}
    					f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath)
    					f.Preamble += commentText(cg) + "\n"
    					f.Preamble += "#line 1 \"cgo-generated-wrapper\"\n"
    				}
    			}
    
    		case *ast.FuncDecl:
    			// Also, reject attempts to declare methods on C.T or *C.T.
    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)
  10. doc/next/6-stdlib/99-minor/net/62254.md

    The new type [KeepAliveConfig] permits fine-tuning the keep-alive
    options for TCP connections, via a new [TCPConn.SetKeepAliveConfig]
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 205 bytes
    - Viewed (0)
Back to top