Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for InvalidDir (0.22 sec)

  1. src/internal/abi/type.go

    	BothDir            = RecvDir | SendDir // chan
    	InvalidDir ChanDir = 0
    )
    
    // ChanType represents a channel type
    type ChanType struct {
    	Type
    	Elem *Type
    	Dir  ChanDir
    }
    
    type structTypeUncommon struct {
    	StructType
    	u UncommonType
    }
    
    // ChanDir returns the direction of t if t is a channel type, otherwise InvalidDir (0).
    func (t *Type) ChanDir() ChanDir {
    	if t.Kind() == Chan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top