Add more error check and declare the field name in composite literal.

This commit is contained in:
Charles committed 2015-09-16 23:07:05 +08:00
1 parent cc3f374623
commit 5495b8bea5
6 files changed
+56 -25

No files matched your search

+4 -1
View File
@@ -10,7 +10,10 @@ type Ray struct {
}
func NewRay() Ray {
return Ray{make(chan []byte, bufferSize), make(chan []byte, bufferSize)}
return Ray{
Input: make(chan []byte, bufferSize),
Output: make(chan []byte, bufferSize),
}
}
type OutboundRay interface {