Skip to content

Commit 68a5497

Browse files
committed
fixed some spelling
1 parent 118c4bf commit 68a5497

File tree

7 files changed

+54
-54
lines changed

7 files changed

+54
-54
lines changed

cmds/jsoncols/jsoncols.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ var (
3030
3131
SYSNOPSIS
3232
33-
%s provides scripting flexibility for data extraction from JSON data
34-
returning the results in columns. This is helpful in flattening content
35-
extracted from JSON blobs. The default delimiter for each value
33+
%s provides scripting flexibility for data extraction from JSON data
34+
returning the results in columns. This is helpful in flattening content
35+
extracted from JSON blobs. The default delimiter for each value
3636
extracted is a comma. This can be overridden with an option.
3737
3838
+ EXPRESSION can be an empty stirng or dot notation for an object's path
39-
+ INPUT_FILENAME is the filename to read or a dash "-" if you want to
40-
explicity read from stdin
39+
+ INPUT_FILENAME is the filename to read or a dash "-" if you want to
40+
explicitly read from stdin
4141
+ if not provided then %s reads from stdin
42-
+ OUTPUT_FILENAME is the filename to write or a dash "-" if you want to
43-
explicity write to stdout
42+
+ OUTPUT_FILENAME is the filename to write or a dash "-" if you want to
43+
explicitly write to stdout
4444
+ if not provided then %s write to stdout
4545
4646
`
@@ -57,17 +57,17 @@ Getting just the name could be done with
5757
5858
%s -i myblob.json .name
5959
60-
This would yeild
60+
This would yield
6161
6262
"Doe, Jane"
6363
64-
Flipping .name and .age into pipe delimited columns is as
65-
easy as listing each field in the expression inside a
64+
Flipping .name and .age into pipe delimited columns is as
65+
easy as listing each field in the expression inside a
6666
space delimited string.
6767
68-
%s -i myblob.json -d\| .name .age
68+
%s -i myblob.json -d\| .name .age
6969
70-
This would yeild
70+
This would yield
7171
7272
Doe, Jane|42
7373

cmds/jsonjoin/jsonjoin.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ var (
2828
2929
SYSNOPSIS
3030
31-
%s is a command line tool that takes one (or more) JSON objects files
32-
and joins them to a root JSON object read from standard input (or
31+
%s is a command line tool that takes one (or more) JSON objects files
32+
and joins them to a root JSON object read from standard input (or
3333
file identified by -input option). By default the resulting
3434
joined JSON object is written to standard out.
3535
3636
The default behavior for %s is to create key/value pairs
37-
based on the joined JSON document names and their contents.
38-
This can be thought of as a branching behavior. Each additional
39-
file becomes a branch and its key/value pairs become leafs.
37+
based on the joined JSON document names and their contents.
38+
This can be thought of as a branching behavior. Each additional
39+
file becomes a branch and its key/value pairs become leafs.
4040
The root JSON object is assumed to come from standard input
4141
but can be designated by the -input option or created by the
4242
-create option. Each additional file specified as a command line
4343
argument is then treated as a new branch.
4444
45-
In addition to the branching behavior you can join JSON objects in a
46-
flat manner. The flat joining process can be ether non-distructive
47-
adding new key/value pairs (-update option) or distructive
45+
In addition to the branching behavior you can join JSON objects in a
46+
flat manner. The flat joining process can be ether non-destructive
47+
adding new key/value pairs (-update option) or destructive
4848
overwriting key/value pairs (-overwrite option).
4949
5050
Note: %s doesn't support a JSON array as the root JSON object.
@@ -55,29 +55,29 @@ Note: %s doesn't support a JSON array as the root JSON object.
5555
5656
EXAMPLES
5757
58-
Consider two JSON objects one in person.json and another
58+
Consider two JSON objects one in person.json and another
5959
in profile.json.
6060
61-
person.json containes
61+
person.json contains
6262
6363
{ "name": "Doe, Jane", "email":"[email protected]", "age": 42 }
6464
65-
profile.json containes
65+
profile.json contains
6666
6767
{ "name": "Doe, Jane", "bio": "World renowned geophysist.",
6868
"email": "[email protected]" }
6969
70-
A simple join of person.json with profile.json (note the
70+
A simple join of person.json with profile.json (note the
7171
-create option)
7272
7373
%s -create person.json profile.json
7474
75-
would yeild and object like
75+
would yield and object like
7676
7777
{
78-
"person": { "name": "Doe, Jane", "email":"[email protected]",
78+
"person": { "name": "Doe, Jane", "email":"[email protected]",
7979
"age": 42},
80-
"profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
80+
"profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
8181
"email": "[email protected]" }
8282
}
8383
@@ -94,13 +94,13 @@ this yields an object like
9494
9595
{
9696
"name": "Doe, Jane", "email":"[email protected]", "age": 42,
97-
"profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
97+
"profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
9898
"email": "[email protected]" }
9999
}
100100
101101
You can modify this behavor with -update or -overwrite. Both options are
102102
order dependant (i.e. not associative, A update B does
103-
not necessarily equal B update A).
103+
not necessarily equal B update A).
104104
105105
+ -update will add unique key/values from the second object to the first object
106106
+ -overwrite replace key/values in first object one with second objects'
@@ -119,12 +119,12 @@ Running
119119
%s -create -update profile.json person.json
120120
121121
would yield
122-
123-
{ "name": "Doe, Jane", "age": 42,
124-
"bio": "World renowned geophysist.",
122+
123+
{ "name": "Doe, Jane", "age": 42,
124+
"bio": "World renowned geophysist.",
125125
"email": "[email protected]" }
126126
127-
Running
127+
Running
128128
129129
%s -create -overwrite person.json profile.json
130130

cmds/jsonmunge/jsonmunge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ If person.json contained
4949
5050
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}
5151
52-
and the template, name.tmpl, contained
52+
and the template, name.tmpl, contained
5353
5454
{{- .name -}}
5555
5656
Getting just the name could be done with
5757
5858
cat person.json | %s name.tmpl
5959
60-
This would yeild
60+
This would yield
6161
6262
"Doe, Jane"
6363

cmds/reldate/reldate.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ var (
4141
4242
SYNOPSIS
4343
44-
%s is a small command line utility which returns the relative date in
45-
YYYY-MM-DD format. This is helpful when scripting various time
46-
relationships. The difference in time returned are determined by
44+
%s is a small command line utility which returns the relative date in
45+
YYYY-MM-DD format. This is helpful when scripting various time
46+
relationships. The difference in time returned are determined by
4747
the time increments provided.
4848
4949
Time increments are a positive or negative integer. Time unit can be
@@ -77,9 +77,9 @@ Supported time units are
7777
7878
Specifying a date to calucate from
7979
80-
%s handles dates in the YYYY-MM-DD format (e.g. March 1, 2014 would be
81-
2014-03-01). By default reldate uses today as the date to calculate relative
82-
time from. If you use the –from option you can it will calculate the
80+
%s handles dates in the YYYY-MM-DD format (e.g. March 1, 2014 would be
81+
2014-03-01). By default reldate uses today as the date to calculate relative
82+
time from. If you use the –from option you can it will calculate the
8383
relative date from that specific date.
8484
8585
%s --from=2014-08-03 3 days
@@ -90,9 +90,9 @@ Will yield
9090
9191
NEGATIVE INCREMENTS
9292
93-
Command line arguments traditionally start with a dash which we also use to
94-
denote a nagative number. To tell the command line process that to not treat
95-
negative numbers as an “option” preceed your time increment and time unit
93+
Command line arguments traditionally start with a dash which we also use to
94+
denote a nagative number. To tell the command line process that to not treat
95+
negative numbers as an “option” precede your time increment and time unit
9696
with a double dash.
9797
9898
%s --from=2014-08-03 -- -3 days
@@ -103,20 +103,20 @@ Will yield
103103
104104
RELATIVE WEEK DAYS
105105
106-
You can calculate a date from a weekday name (e.g. Saturday, Monday, Tuesday)
107-
knowning a day (e.g. 2015-02-10 or the current date of the week) occuring in
108-
a week. A common case would be wanting to figure out the Monday date of a week
109-
containing 2015-02-10. The week is presumed to start on Sunday (i.e. 0) and
106+
You can calculate a date from a weekday name (e.g. Saturday, Monday, Tuesday)
107+
knowning a day (e.g. 2015-02-10 or the current date of the week) occurring in
108+
a week. A common case would be wanting to figure out the Monday date of a week
109+
containing 2015-02-10. The week is presumed to start on Sunday (i.e. 0) and
110110
finish with Saturday (e.g. 6).
111111
112112
%s --from=2015-02-10 Monday
113113
114-
will yeild
114+
will yield
115115
116116
2015-02-09
117117
118-
As that is the Monday of the week containing 2015-02-10. Weekday names case
119-
insensitive and can be the first three letters of the English names or full
118+
As that is the Monday of the week containing 2015-02-10. Weekday names case
119+
insensitive and can be the first three letters of the English names or full
120120
English names (e.g. Monday, monday, Mon, mon).
121121
122122
`

cmds/urlparse/urlparse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func init() {
110110
flag.BoolVar(&showHelp, "help", false, "display help")
111111
flag.BoolVar(&showLicense, "l", false, "display license")
112112
flag.BoolVar(&showLicense, "license", false, "display license")
113-
flag.BoolVar(&showVersion, "v", false, "display verison")
113+
flag.BoolVar(&showVersion, "v", false, "display version")
114114
flag.BoolVar(&showVersion, "version", false, "display version")
115115
flag.BoolVar(&showExamples, "example", false, "display example(s)")
116116

datatools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
6161
)
6262

6363
// NormalizeDelimiters handles the messy translation from a format string
64-
// recieved as an option in the cli to something useful to pass to Join.
64+
// received as an option in the cli to something useful to pass to Join.
6565
func NormalizeDelimiter(s string) string {
6666
if strings.Contains(s, `\n`) {
6767
s = strings.Replace(s, `\n`, "\n", -1)

reldate/reldate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func relativeWeekday(t time.Time, weekday time.Weekday) (time.Time, error) {
8888
return t, errors.New("Expecting Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.")
8989
}
9090

91-
// RelativeTime takes a time, an integer ammount (positive or negative)
91+
// RelativeTime takes a time, an integer amount (positive or negative)
9292
// and a unit value (day of week, days, weeks, month, years) and
9393
// computes the relative time in days from time returning a new
9494
// time and error.

0 commit comments

Comments
 (0)