Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for io (0.14 sec)

  1. doc/go1.17_spec.html

    type I interface { m() }
    
    func f(y I) {
    	s := y.(string)        // illegal: string does not implement I (missing method m)
    	r := y.(io.Reader)     // r has type io.Reader and the dynamic type of y must implement both I and io.Reader
    	…
    }
    </pre>
    
    <p>
    A type assertion used in an <a href="#Assignments">assignment</a> or initialization of the special form
    </p>
    
    <pre>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    type I interface { m() }
    
    func f(y I) {
    	s := y.(string)        // illegal: string does not implement I (missing method m)
    	r := y.(io.Reader)     // r has type io.Reader and the dynamic type of y must implement both I and io.Reader
    	…
    }
    </pre>
    
    <p>
    A type assertion used in an <a href="#Assignment_statements">assignment statement</a> or initialization of the special form
    </p>
    
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
Back to top