We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0886a6a commit c71396eCopy full SHA for c71396e
docs/Getting-Started.md
@@ -82,7 +82,7 @@ type Message struct {
82
}
83
84
func main() {
85
- code := `map(filter(messages, len(.Text) > 0), .Text + Format(.timestamp))`
+ code := `map(filter(messages, len(.Text) > 0), Format(.Date) + '\t' + .Text + '\n')`
86
87
// We can use an empty instance of the struct as an environment.
88
program, err := expr.Compile(code, expr.Env(Env{}))
0 commit comments