diff --git a/README.md b/README.md index 76a9860..1f8de93 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ cloud! Incite is a native GoLang library that streamlines your interactions with the CloudWatch Logs Insights API using minimalist, native Go, paradigms. Incite gets -the API out of the way so you can focus on app development. +the API out of the way, so you can focus on app development. Features ======== @@ -80,14 +80,14 @@ import ( "fmt" "time" - "github.com/aws/aws-sdk-go/service/cloudwatchlogs" "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudwatchlogs" "github.com/gogama/incite" ) func main() { // Use the AWS SDK for Go to get the CloudWatch API actions Incite needs. - // For simplicity we assume that the correct AWS region and credentials are + // For simplicity, we assume that the correct AWS region and credentials are // already set in the environment. a := cloudwatchlogs.New(session.Must(session.NewSession())) diff --git a/cloudwatchlogs_actions.go b/cloudwatchlogs_actions.go index 43d02b7..b46451d 100644 --- a/cloudwatchlogs_actions.go +++ b/cloudwatchlogs_actions.go @@ -54,7 +54,7 @@ const ( ) // RPSQuotaLimits contains the CloudWatch Logs service quota limits for -// number of requests per second for each CloudWatch Logs API act +// number of requests per second for each CloudWatch Logs API action // before the request fails due to a throttling error as documented in // the AWS service limits system. // diff --git a/example_test.go b/example_test.go index 001e105..fbfc7c3 100644 --- a/example_test.go +++ b/example_test.go @@ -88,7 +88,7 @@ func ExampleUnmarshal_mapStringInterface() { // As a special case, the data are unmarshalled fuzzily if the target // is a map[string]interface{}. If a value is valid JSON it is // unmarshalled as JSON, otherwise it is kept as a string. Here the - // Object and QuotedString fields are contain valid JSON so they + // Object and QuotedString fields contain valid JSON so they // unmarshal as a map and string, respectively. UnquotedString is // not valid JSON and stays as a string. data := []incite.Result{ diff --git a/log.go b/log.go index 68c6da9..42dbf1d 100644 --- a/log.go +++ b/log.go @@ -7,7 +7,7 @@ package incite // A Logger represents a logging object which can receive log messages // from a QueryManager and send them to an output sink. // -// Logger is compatible with *log.Logger. Therefore you may, for +// Logger is compatible with *log.Logger. Therefore, you may, for // example, use log.DefaultLogger(), or any other *log.Logger value, as // the Logger field of a Config structure when constructing a new // QueryManager using the NewQueryManager function. diff --git a/mgr_test.go b/mgr_test.go index bd40c86..97252a0 100644 --- a/mgr_test.go +++ b/mgr_test.go @@ -1718,7 +1718,7 @@ func TestQueryManager_Query(t *testing.T) { }, } - // Run the sub-tests. + // Run the subtests. for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { // ARRANGE. diff --git a/query.go b/query.go index 6dd915c..0478aeb 100644 --- a/query.go +++ b/query.go @@ -6,7 +6,7 @@ package incite import "context" -// Query is sweet sweet sugar to perform a synchronous CloudWatch Logs +// Query is sweet, sweet sugar to perform a synchronous CloudWatch Logs // Insights query and get back all the results without needing to // construct a QueryManager. Query runs the query indicated by q, using // the CloudWatch Logs actions provided by a, and returns all the diff --git a/unmarshal.go b/unmarshal.go index 4b88088..5306466 100644 --- a/unmarshal.go +++ b/unmarshal.go @@ -50,7 +50,7 @@ import ( // target a struct field unmarshallable type, an InvalidUnmarshalError // is returned. // -// • A struct field with a "json" tag receives the the value of the +// • A struct field with a "json" tag receives the value of the // ResultField field named in the tag using the json.Unmarshal function // from the encoding/json package with the ResultField value as the // input JSON and the struct field address as the target. If the tag is @@ -62,7 +62,7 @@ import ( // • A struct field with no "incite" or "json" tag receives the value // of the ResultField field sharing the same case-sensitive name as the // struct field, but only if the field type ultimately targets a -// struct field unmarshallable type. Otherwise the field is ignored. +// struct field unmarshallable type. Otherwise, the field is ignored. // // The following types are considered struct field unmarshallable types: // @@ -88,7 +88,7 @@ import ( // InvalidUnmarshalError. // // If a result field value cannot be decoded, Unmarshal continues -// decoding the remaining input data on a best effort basis, and after +// decoding the remaining input data on a best-effort basis, and after // processing all the data, returns an UnmarshalResultFieldValueError // describing the first such decoding problem encountered. // @@ -571,7 +571,7 @@ func copyResult(r Result) Result { } // An InvalidUnmarshalError occurs when a value with an invalid type -// is passed to to Unmarshal. +// is passed to Unmarshal. type InvalidUnmarshalError struct { Type reflect.Type RowType reflect.Type