Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LT (0.12 sec)

  1. doc/go_mem.html

    corresponding receive from that channel.
    </p>
    
    <p>
    This program:
    </p>
    
    <pre>
    var c = make(chan int, 10)
    var a string
    
    func f() {
    	a = "hello, world"
    	c &lt;- 0
    }
    
    func main() {
    	go f()
    	&lt;-c
    	print(a)
    }
    </pre>
    
    <p>
    is guaranteed to print <code>"hello, world"</code>.  The write to <code>a</code>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top