Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://www.openrdap.org/public/img/logo.png">

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
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")
}
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down Expand Up @@ -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.
//
Expand Down
4 changes: 2 additions & 2 deletions print.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down