Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Franke (0.2 sec)

  1. doc/go1.22.html

      </li>
      <li>
        "For" loops may now range over integers.
        For <a href="https://go.dev/play/p/ky02zZxgk_r?v=gotip">example</a>:
    <pre>
    package main
    
    import "fmt"
    
    func main() {
      for i := range 10 {
        fmt.Println(10 - i)
      }
      fmt.Println("go1.22 has lift-off!")
    }
    </pre>
        See the spec for <a href="/ref/spec#For_range">details</a>.
      </li>
    </ul>
    
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  2. doc/go_mem.html

    goroutines coordinate using the <code>limit</code> channel to ensure
    that at most three are running work functions at a time.
    </p>
    
    <pre>
    var limit = make(chan int, 3)
    
    func main() {
    	for _, w := range work {
    		go func(w func()) {
    			limit &lt;- 1
    			w()
    			&lt;-limit
    		}(w)
    	}
    	select{}
    }
    </pre>
    
    <h3 id="locks">Locks</h3>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top