Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Chan (0.21 sec)

  1. doc/go1.17_spec.html

    <-chan <-chan int  // same as <-chan (<-chan int)
    chan (<-chan int)
    </pre>
    
    <p>
    A new, initialized channel
    value can be made using the built-in function
    <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the channel type and an optional <i>capacity</i> as arguments:
    </p>
    
    <pre>
    make(chan int, 100)
    </pre>
    
    <p>
    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)
  2. doc/go_spec.html

    &lt;-chan &lt;-chan int  // same as &lt;-chan (&lt;-chan int)
    chan (&lt;-chan int)
    </pre>
    
    <p>
    A new, initialized channel
    value can be made using the built-in function
    <a href="#Making_slices_maps_and_channels"><code>make</code></a>,
    which takes the channel type and an optional <i>capacity</i> as arguments:
    </p>
    
    <pre>
    make(chan int, 100)
    </pre>
    
    <p>
    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)
  3. src/builtin/builtin.go

    // constant. See the Go language specification's "Length and capacity" section for
    // details.
    func cap(v Type) int
    
    // The make built-in function allocates and initializes an object of type
    // slice, map, or chan (only). Like new, the first argument is a type, not a
    // value. Unlike new, make's return type is the same as the type of its
    // argument, not a pointer to it. The specification of the result depends on
    // the type:
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    	}
    
    	// test read of each file
    	for i, ft := range zt.File {
    		readTestFile(t, zt, ft, z.File[i], raw)
    	}
    	if t.Failed() {
    		return
    	}
    
    	// test simultaneous reads
    	n := 0
    	done := make(chan bool)
    	for i := 0; i < 5; i++ {
    		for j, ft := range zt.File {
    			go func(j int, ft ZipTestFile) {
    				readTestFile(t, zt, ft, z.File[j], raw)
    				done <- true
    			}(j, ft)
    			n++
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    		generated output.
    	-gccgo
    		Generate output for the gccgo compiler rather than the
    		gc compiler.
    	-gccgoprefix prefix
    		The -fgo-prefix option to be used with gccgo.
    	-gccgopkgpath path
    		The -fgo-pkgpath option to be used with gccgo.
    	-gccgo_define_cgoincomplete
    		Define cgo.Incomplete locally rather than importing it from
    		the "runtime/cgo" package. Used for old gccgo versions.
    	-godefs
    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)
  6. src/bytes/bytes.go

    	type span struct {
    		start int
    		end   int
    	}
    	spans := make([]span, 0, 32)
    
    	// Find the field start and end indices.
    	// Doing this in a separate pass (rather than slicing the string s
    	// and collecting the result substrings right away) is significantly
    	// more efficient, possibly due to cache effects.
    	start := -1 // valid span start if >= 0
    	for i := 0; i < len(s); {
    		size := 1
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  7. doc/next/3-tools.md

    ## Tools {#tools}
    
    ### Go command {#go-command}
    
    Setting the `GOROOT_FINAL` environment variable no longer has an effect
    ([#62047](https://go.dev/issue/62047)).
    Distributions that install the `go` command to a location other than
    `$GOROOT/bin/go` should install a symlink instead of relocating
    or copying the `go` binary.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 14 16:58:10 GMT 2024
    - 339 bytes
    - Viewed (0)
  8. src/cmd/api/main_test.go

    		buf.WriteString("map[")
    		w.writeType(buf, typ.Key())
    		buf.WriteByte(']')
    		w.writeType(buf, typ.Elem())
    
    	case *types.Chan:
    		var s string
    		switch typ.Dir() {
    		case types.SendOnly:
    			s = "chan<- "
    		case types.RecvOnly:
    			s = "<-chan "
    		case types.SendRecv:
    			s = "chan "
    		default:
    			panic("unreachable")
    		}
    		buf.WriteString(s)
    		w.writeType(buf, typ.Elem())
    
    	case *types.Alias:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  9. doc/go_mem.html

    may be implemented as a write of each individual sub-value,
    in any order.
    </p>
    
    <p>
    A read <i>r</i> of a memory location <i>x</i>
    holding a value
    that is not larger than a machine word must observe
    some write <i>w</i> such that <i>r</i> does not happen before <i>w</i>
    and there is no write <i>w'</i> such that <i>w</i> happens before <i>w'</i>
    and <i>w'</i> happens before <i>r</i>.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  10. doc/godebug.md

    says `go` `1.20`, then the program defaults to `panicnil=1`,
    matching Go 1.20 instead of Go 1.21.
    
    Because this method of setting GODEBUG defaults was introduced only in Go 1.21,
    programs listing versions of Go earlier than Go 1.20 are configured to match Go 1.20,
    not the older version.
    
    To override these defaults, a main package's source files
    can include one or more `//go:debug` directives at the top of the file
    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)
Back to top