Skip to content

Commit c71396e

Browse files
authored
Fixed a compilation error - there is not member named timestamp. Added some formatting for better looks. (#355)
1 parent 0886a6a commit c71396e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Getting-Started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ type Message struct {
8282
}
8383

8484
func main() {
85-
code := `map(filter(messages, len(.Text) > 0), .Text + Format(.timestamp))`
85+
code := `map(filter(messages, len(.Text) > 0), Format(.Date) + '\t' + .Text + '\n')`
8686

8787
// We can use an empty instance of the struct as an environment.
8888
program, err := expr.Compile(code, expr.Env(Env{}))

0 commit comments

Comments
 (0)