Skip to content

Commit 4355ef0

Browse files
cameronhatfieldantonmedv
authored andcommitted
Update Getting-Started.md
Corrected a spelling error with request.
1 parent 66d58ff commit 4355ef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Getting-Started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
For demonstration purpose, let's assume that we already have some types and structs describing our data. And we want to implement filtering of data flow, via providing our users to configure such filters via expressions.
55

66
```go
7-
type Requset struct {
7+
type Request struct {
88
Location string
99
Date time.Time
1010
Ticket Ticket
@@ -65,7 +65,7 @@ if !output.(bool) {
6565
Now let's some add a function for repetitive tasks.
6666

6767
```go
68-
func (r *Requset) SameLocation() bool {
68+
func (r *Request) SameLocation() bool {
6969
same := false
7070
for _, s := range r.Ticket.Segments {
7171
same = same && s.Origin == r.Location
@@ -85,7 +85,7 @@ SameLocation() and Date.Before(Ticket.Segments[0].Date)
8585
Much better. But using time's package methods isn't pretty. What if we can override operators? And we can! Let's describe another function.
8686

8787
```go
88-
func (*Requset) Before(a, b time.Time) bool {
88+
func (*Request) Before(a, b time.Time) bool {
8989
return a.Before(b)
9090
}
9191
```

0 commit comments

Comments
 (0)