Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Chan (0.15 sec)

  1. doc/go_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: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  2. 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)
  3. doc/go1.17_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: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. doc/next/6-stdlib/99-minor/net/http/66008.md

    The new [ParseCookie] function parses a Cookie header value and
    returns all the cookies which were set in it. Since the same cookie
    name can appear multiple times the returned Values can contain
    more than one value for a given key.
    
    The new [ParseSetCookie] function parses a Set-Cookie header value and
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 17 17:43:50 GMT 2024
    - 359 bytes
    - Viewed (0)
Back to top