Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/reflect/chan.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package reflect

type SelectDir int

const (
_ SelectDir = iota
SelectSend // case Chan <- Send
SelectRecv // case <-Chan:
SelectDefault // default
)

type SelectCase struct {
Dir SelectDir // direction of case
Chan Value // channel to use (for send or receive)
Send Value // value to send (for send)
}

func Select(cases []SelectCase) (chosen int, recv Value, recvOK bool) {
panic("reflect.Select: unimplemented")
}

func (v Value) Send(x Value) {
panic("reflect.Value.Send(): unimplemented")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: unnecessary newline

}

func (v Value) Close() {
panic("reflect.Value.Close(): unimplemented")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

}