LGTM. You might want to add a reviewer that can commit this. On 2011/06/10 00:21:58, ...
13 years, 10 months ago
(2011-06-10 00:37:06 UTC)
#3
LGTM. You might want to add a reviewer that can commit this.
On 2011/06/10 00:21:58, mikioh wrote:
> Hello mailto:golang-dev@googlegroups.com, mailto:fullung@gmail.com (cc:
> mailto:golang-dev@googlegroups.com),
>
> Please take another look.
Would you mind reviewing this CL please, Mr. Cox. On Fri, Jun 10, 2011 at ...
13 years, 10 months ago
(2011-06-10 01:29:12 UTC)
#4
Would you mind reviewing this CL please, Mr. Cox.
On Fri, Jun 10, 2011 at 9:37 AM, <fullung@gmail.com> wrote:
> LGTM. You might want to add a reviewer that can commit this.
>
> On 2011/06/10 00:21:58, mikioh wrote:
>>
>> Hello mailto:golang-dev@googlegroups.com, mailto:fullung@gmail.com
>
> (cc:
>>
>> mailto:golang-dev@googlegroups.com),
>
>> Please take another look.
>
> http://codereview.appspot.com/4602044/
On Mon, Jun 13, 2011 at 20:15, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > Ping. I haven't ...
13 years, 10 months ago
(2011-06-14 00:45:13 UTC)
#8
On Mon, Jun 13, 2011 at 20:15, Mikio Hara <mikioh.mikioh@gmail.com> wrote:
> Ping.
I haven't forgotten this; I've just got a lot of things pending. Hang in there.
http://codereview.appspot.com/4602044/diff/7018/src/pkg/net/interface.go File src/pkg/net/interface.go (right): http://codereview.appspot.com/4602044/diff/7018/src/pkg/net/interface.go#newcode45 src/pkg/net/interface.go:45: flagMulticast = 1 << 15 Are these defined by ...
13 years, 10 months ago
(2011-06-14 15:15:26 UTC)
#9
http://codereview.appspot.com/4602044/diff/7018/src/pkg/net/interface.go
File src/pkg/net/interface.go (right):
http://codereview.appspot.com/4602044/diff/7018/src/pkg/net/interface.go#newc...
src/pkg/net/interface.go:45: flagMulticast = 1 << 15
Are these defined by an RFC or something?
If so, please add a comment at the top of the block saying so.
If not, use 1<<iota
Also, is there a reason not to export the flags and throw away the methods?
type Flags uint
const (
FlagUp Flags = 1<<iota
FlagBroadcast
FlagLoopback
FlagPointToPoint
FlagMulticast
)
var flagNames = []string {
"up",
"broadcast",
"loopback",
"pointtopoint",
"multicast"
}
func (f Flags) String() string {
s := ""
for i, name := range flagNames {
if f&(1<<i) != 0 {
if s != "" {
s += "|"
}
s += name
}
}
if s == "" {
s = "0"
}
return s
}
Issue 4602044: code review 4602044: net: export all fields in Interface
(Closed)
Created 13 years, 10 months ago by mikio
Modified 13 years, 10 months ago
Reviewers:
Base URL:
Comments: 4