From f1d00df4dda7a35651359b76bad34a9d1262994d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 20 Mar 2023 12:46:26 +0100 Subject: Upgrade to go-imap v2 --- docs/example-go-plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/example-go-plugin/plugin.go b/docs/example-go-plugin/plugin.go index 90877df..bd92447 100644 --- a/docs/example-go-plugin/plugin.go +++ b/docs/example-go-plugin/plugin.go @@ -17,7 +17,7 @@ func init() { // Setup a function called when the mailbox view is rendered p.Inject("mailbox.html", func(ctx *alps.Context, kdata alps.RenderData) error { data := kdata.(*alpsbase.MailboxRenderData) - fmt.Println("The mailbox view for " + data.Mailbox.Name + " is being rendered") + fmt.Println("The mailbox view for " + data.Mailbox.Name() + " is being rendered") // Set extra data that can be accessed from the mailbox.html template data.Extra["Example"] = "Hi from Go" return nil -- cgit v1.2.3-59-g8ed1b