diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/net/mac.go')
| -rw-r--r-- | llgo/third_party/gofrontend/libgo/go/net/mac.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/net/mac.go b/llgo/third_party/gofrontend/libgo/go/net/mac.go index d616b1f689f..8594a9146ae 100644 --- a/llgo/third_party/gofrontend/libgo/go/net/mac.go +++ b/llgo/third_party/gofrontend/libgo/go/net/mac.go @@ -2,12 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// MAC address manipulations - package net -import "errors" - const hexDigit = "0123456789abcdef" // A HardwareAddr represents a physical hardware address. @@ -82,5 +78,5 @@ func ParseMAC(s string) (hw HardwareAddr, err error) { return hw, nil error: - return nil, errors.New("invalid MAC address: " + s) + return nil, &AddrError{Err: "invalid MAC address", Addr: s} } |

