Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for go (0.13 sec)

  1. src/cmd/cgo/internal/test/callback.go

    }
    
    // Test that we can return a value from Go->C->Go if the Go code
    // causes a stack copy.
    func testReturnAfterGrowFromGo(t *testing.T) {
    	// Use a new goroutine so that we get a small stack.
    	c := make(chan int)
    	go func() {
    		c <- int(C.returnAfterGrowFromGo())
    	}()
    	if got, want := <-c, 129*128/2; got != want {
    		t.Errorf("got %d want %d", got, want)
    	}
    }
    
    //export goReturnVal
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    }
    
    // empty a channel
    for range ch {}
    </pre>
    
    
    <h3 id="Go_statements">Go statements</h3>
    
    <p>
    A "go" statement starts the execution of a function call
    as an independent concurrent thread of control, or <i>goroutine</i>,
    within the same address space.
    </p>
    
    <pre class="ebnf">
    GoStmt = "go" Expression .
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. api/go1.3.txt

    pkg debug/plan9obj, type Sym struct, Name string
    pkg debug/plan9obj, type Sym struct, Type int32
    pkg debug/plan9obj, type Sym struct, Value uint64
    pkg encoding/asn1, method (ObjectIdentifier) String() string
    pkg go/build, type Package struct, MFiles []string
    pkg math/big, method (*Int) MarshalText() ([]uint8, error)
    pkg math/big, method (*Int) UnmarshalText([]uint8) error
    pkg math/big, method (*Rat) MarshalText() ([]uint8, error)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
Back to top