From 4c13b8f8b5c54dee878e4b43c6c8e1a7ee71bb1d Mon Sep 17 00:00:00 2001 From: Pranav Peshwe Date: Mon, 17 Apr 2023 20:36:21 +0530 Subject: [PATCH] Fixed a compilation error - there is not member named timestamp. Added some formatting for better looks. --- docs/Getting-Started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Getting-Started.md b/docs/Getting-Started.md index de42cdb4c..04dd015a5 100644 --- a/docs/Getting-Started.md +++ b/docs/Getting-Started.md @@ -82,7 +82,7 @@ type Message struct { } func main() { - code := `map(filter(messages, len(.Text) > 0), .Text + Format(.timestamp))` + code := `map(filter(messages, len(.Text) > 0), Format(.Date) + '\t' + .Text + '\n')` // We can use an empty instance of the struct as an environment. program, err := expr.Compile(code, expr.Env(Env{}))