Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CanSend (0.09 sec)

  1. src/cmd/compile/internal/types/type.go

    	NTYPE
    )
    
    // ChanDir is whether a channel can send, receive, or both.
    type ChanDir uint8
    
    func (c ChanDir) CanRecv() bool { return c&Crecv != 0 }
    func (c ChanDir) CanSend() bool { return c&Csend != 0 }
    
    const (
    	// types of channel
    	// must match ../../../../reflect/type.go:/ChanDir
    	Crecv ChanDir = 1 << 0
    	Csend ChanDir = 1 << 1
    	Cboth ChanDir = Crecv | Csend
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  2. src/time/time_test.go

    	}
    	for i, tt := range realTests {
    		start, end := tt.giveTime.ZoneBounds()
    		if !start.Equal(tt.wantStart) || !end.Equal(tt.wantEnd) {
    			t.Errorf("#%d:: ZoneBounds of %v expects right bounds:\n  got start=%v\n  want start=%v\n  got end=%v\n  want end=%v",
    				i, tt.giveTime, start, tt.wantStart, end, tt.wantEnd)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top