diff --git a/README.md b/README.md index b8d1889..3ce0a36 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -OpenRDAP is an command line [RDAP](https://datatracker.ietf.org/wg/weirds/documents/) client implementation in Go. +OpenRDAP is a command line [RDAP](https://datatracker.ietf.org/wg/weirds/documents/) client implementation in Go. [![Build Status](https://travis-ci.org/openrdap/rdap.svg?branch=master)](https://travis-ci.org/openrdap/rdap) https://www.openrdap.org - homepage diff --git a/cli.go b/cli.go index b874b97..464110f 100644 --- a/cli.go +++ b/cli.go @@ -502,7 +502,7 @@ func RunCLI(args []string, stdout io.Writer, stderr io.Writer, options CLIOption return 1 } - // Insert a blank line to seperate verbose messages/proper output. + // Insert a blank line to separate verbose messages/proper output. if *verboseFlag { fmt.Fprintln(stderr, "") } diff --git a/client.go b/client.go index 5b45cf3..61656a6 100644 --- a/client.go +++ b/client.go @@ -65,7 +65,7 @@ import ( // // client := &rdap.Client{} // client.HTTP = &http.Client{} // Custom HTTP client. -// client.Bootstrap = &bootstrap.Client{} // Custom bootstapper. +// client.Bootstrap = &bootstrap.Client{} // Custom bootstrapper. // // resp, err := client.Do(req) // @@ -243,7 +243,7 @@ func (c *Client) get(rdapReq *Request) *HTTPResponse { start := time.Now() - // Setup the HTTP request. + // Set up the HTTP request. req, err := http.NewRequest("GET", httpResponse.URL, nil) if err != nil { httpResponse.Error = err diff --git a/common.go b/common.go index d30cf7d..7910a3c 100644 --- a/common.go +++ b/common.go @@ -55,7 +55,7 @@ type Remark struct { // // https://tools.ietf.org/html/rfc7483#section-4.4 -// Event represents some event which has occured/may occur in the future.. +// Event represents some event which has occurred/may occur in the future.. // // https://tools.ietf.org/html/rfc7483#section-4.5 type Event struct { diff --git a/decoder.go b/decoder.go index 1d57d34..f682177 100644 --- a/decoder.go +++ b/decoder.go @@ -48,7 +48,7 @@ import ( // &rdap.IPNetwork{} - Responses with objectClassName="ip network". // &rdap.Nameserver{} - Responses with objectClassName="nameserver". // &rdap.DomainSearchResults{} - Responses with a domainSearchResults array. -// &rdap.EntitySearchResults{} - Responses with a entitySearchResults array. +// &rdap.EntitySearchResults{} - Responses with an entitySearchResults array. // &rdap.NameserverSearchResults{} - Responses with a nameserverSearchResults array. // &rdap.Help{} - All other valid JSON responses. // @@ -104,7 +104,7 @@ func NewDecoder(jsonBlob []byte, opts ...DecoderOption) *Decoder { // &rdap.IPNetwork{} - Responses with objectClassName="ip network". // &rdap.Nameserver{} - Responses with objectClassName="nameserver". // &rdap.DomainSearchResults{} - Responses with a domainSearchResults array. -// &rdap.EntitySearchResults{} - Responses with a entitySearchResults array. +// &rdap.EntitySearchResults{} - Responses with an entitySearchResults array. // &rdap.NameserverSearchResults{} - Responses with a nameserverSearchResults array. // &rdap.Help{} - All other valid JSON responses. // diff --git a/print.go b/print.go index e1efc70..338ef15 100644 --- a/print.go +++ b/print.go @@ -809,9 +809,9 @@ func (p *Printer) printUnknowns(d *DecodeData, indentLevel uint) { for k, v := range d.values { isKnown, _ := d.isKnown[k] - isOverrided, _ := d.overrideKnownValue[k] + isOverridden, _ := d.overrideKnownValue[k] - if !(isKnown && !isOverrided) { + if !(isKnown && !isOverridden) { p.printUnknown(k, v, indentLevel) } } diff --git a/request.go b/request.go index 275467e..d069f6b 100644 --- a/request.go +++ b/request.go @@ -432,7 +432,7 @@ func NewRequest(requestType RequestType, query string) *Request { // NewAutoRequest creates a Request by guessing the type required for |queryText|. // -// The following types are suppported: +// The following types are supported: // - RawRequest - e.g. https://example.com/domain/example2.com // - DomainRequest - e.g. example.com, https://example.com, http://example.com/ // - IPRequest - e.g. 192.0.2.0, 2001:db8::, 192.0.2.0/24, 2001:db8::/128