unc -> func

This commit is contained in:
custa 2016-08-14 15:18:18 +08:00
parent 50a330cf5f
commit 32c498171a

View File

@ -43,7 +43,7 @@ func TurnDown(v *Flags) { *v &^= FlagUp }
func SetBroadcast(v *Flags) { *v |= FlagBroadcast }
func IsCast(v Flags) bool { return v&(FlagBroadcast|FlagMulticast) != 0 }
unc main() {
func main() {
var v Flags = FlagMulticast | FlagUp
fmt.Printf("%b %t\n", v, IsUp(v)) // "10001 true"
TurnDown(&v)