Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for lives (0.19 sec)

  1. src/arena/arena.go

    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    // to more easily let an arena-allocated value out-live its arena.
    // T must be a pointer, a slice, or a string, otherwise this function will panic.
    func Clone[T any](s T) T {
    	return runtime_arena_heapify(s).(T)
    }
    
    //go:linkname reflect_arena_New reflect.arena_New
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    	f.walk(ast1, ctxProg, (*File).saveExport)
    	f.walk(ast2, ctxProg, (*File).saveExport2)
    
    	f.Comments = ast1.Comments
    	f.AST = ast2
    }
    
    // Like ast.CommentGroup's Text method but preserves
    // leading blank lines, so that line numbers line up.
    func commentText(g *ast.CommentGroup) string {
    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    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)
  3. src/bufio/bufio_test.go

    	{"4", func(b *Reader) string { return reads(b, 4) }},
    	{"5", func(b *Reader) string { return reads(b, 5) }},
    	{"7", func(b *Reader) string { return reads(b, 7) }},
    	{"bytes", readBytes},
    	{"lines", readLines},
    }
    
    const minReadBufferSize = 16
    
    var bufsizes = []int{
    	0, minReadBufferSize, 23, 32, 46, 64, 93, 128, 1024, 4096,
    }
    
    func TestReader(t *testing.T) {
    	var texts [31]string
    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)
  4. src/cmd/cgo/doc.go

    GOEXPERIMENT=cgocheck2 at build time.
    
    It is possible to defeat this enforcement by using the unsafe package,
    and of course there is nothing stopping the C code from doing anything
    it likes. However, programs that break these rules are likely to fail
    in unexpected and unpredictable ways.
    
    The runtime/cgo.Handle type can be used to safely pass Go values
    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)
  5. doc/go1.17_spec.html

    }
    </pre>
    
    
    <h3 id="Variable_declarations">Variable declarations</h3>
    
    <p>
    A variable declaration creates one or more <a href="#Variables">variables</a>,
    binds corresponding identifiers to them, and gives each a type and an initial value.
    </p>
    
    <pre class="ebnf">
    VarDecl     = "var" ( VarSpec | "(" { VarSpec ";" } ")" ) .
    VarSpec     = IdentifierList ( Type [ "=" ExpressionList ] | "=" ExpressionList ) .
    </pre>
    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)
  6. misc/ios/detect.go

    		return nil, err
    	}
    	return bytes.TrimSpace(out), nil
    }
    
    func getLines(cmd *exec.Cmd) [][]byte {
    	out := output(cmd)
    	lines := bytes.Split(out, []byte("\n"))
    	// Skip the empty line at the end.
    	if len(lines[len(lines)-1]) == 0 {
    		lines = lines[:len(lines)-1]
    	}
    	return lines
    }
    
    func output(cmd *exec.Cmd) []byte {
    	out, err := cmd.Output()
    	if err != nil {
    		fmt.Println(strings.Join(cmd.Args, "\n"))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  7. api/README

    Each file is a list of API features, one per line.
    
    go1.txt (and similarly named files) are frozen once a version has been
    shipped. Each file adds new lines but does not remove any.
    
    except.txt lists features that may disappear without breaking true
    compatibility.
    
    Starting with go1.19.txt, each API feature line must end in "#nnnnn"
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 31 19:22:50 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    	lineNum       int   // Line number in source file.
    	errorLine     int   // Line number of last error.
    	errorCount    int   // Number of errors.
    	sawCode       bool  // saw code in this file (as opposed to comments and blank lines)
    	pc            int64 // virtual PC; count of Progs; doesn't advance for GLOBL or DATA.
    	input         []lex.Token
    	inputPos      int
    	pendingLabels []string // Labels to attach to next instruction.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. doc/go_spec.html

    </p>
    
    <h3 id="Variable_declarations">Variable declarations</h3>
    
    <p>
    A variable declaration creates one or more <a href="#Variables">variables</a>,
    binds corresponding identifiers to them, and gives each a type and an initial value.
    </p>
    
    <pre class="ebnf">
    VarDecl     = "var" ( VarSpec | "(" { VarSpec ";" } ")" ) .
    VarSpec     = IdentifierList ( Type [ "=" ExpressionList ] | "=" ExpressionList ) .
    </pre>
    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. src/cmd/asm/internal/lex/lex_test.go

    	{
    		"argumented macro invoked without arguments",
    		lines(
    			"#define X() foo ",
    			"X()",
    			"X",
    		),
    		"foo.\n.X.\n",
    	},
    	{
    		"multiline macro without arguments",
    		lines(
    			"#define A 1\\",
    			"\t2\\",
    			"\t3",
    			"before",
    			"A",
    			"after",
    		),
    		"before.\n.1.\n.2.\n.3.\n.after.\n",
    	},
    	{
    		"multiline macro with arguments",
    		lines(
    			"#define A(a, b, c) a\\",
    			"\tb\\",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top