diff options
author | Christopher Koch <chrisko@google.com> | 2018-12-29 11:29:25 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-01-14 23:19:04 +0000 |
commit | 833f274e1aca3b23320f6d31c246c73eefd38974 (patch) | |
tree | a25fab2a0597398262bc419a26ff2ffa058388a9 /iana/statuscodes.go | |
parent | 75d26a6410980df90d3a9d224956cfe5ed35a07f (diff) |
iana: rename HwTypeType to HWType, add package comment.
Diffstat (limited to 'iana/statuscodes.go')
-rw-r--r-- | iana/statuscodes.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/iana/statuscodes.go b/iana/statuscodes.go index f61f99e..ee45820 100644 --- a/iana/statuscodes.go +++ b/iana/statuscodes.go @@ -1,9 +1,9 @@ package iana +// StatusCode represents a IANA status code for DHCPv6 +// // IANA Status Codes for DHCPv6 // https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-5 - -// StatusCode represents a IANA status code for DHCPv6 type StatusCode uint16 // IANA status codes @@ -40,14 +40,13 @@ const ( // String returns a mnemonic name for a given status code func (s StatusCode) String() string { - if sc := StatusCodeToStringMap[s]; sc != "" { + if sc := statusCodeToStringMap[s]; sc != "" { return sc } return "Unknown" } -// StatusCodeToStringMap maps status codes to their names -var StatusCodeToStringMap = map[StatusCode]string{ +var statusCodeToStringMap = map[StatusCode]string{ StatusSuccess: "Success", StatusUnspecFail: "UnspecFail", StatusNoAddrsAvail: "NoAddrsAvail", |