From 7ac598e5dc85e82fbe80fd056c78c8f052882730 Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Wed, 3 Jul 2019 16:48:17 -0700 Subject: [PATCH] Updated readme example to use correct mime for the filetype used later in the example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae3e771..9b20d76 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,13 @@ func main() { mc := mailcap.NewMailcap() // Find an avialable command with the required key and gui avialability - command, err := mc.FindMatch("text/plain", "edit", false) + command, err := mc.FindMatch("text/csv", "edit", false) if err != nil { panic(err) } // Run the command with the filepath provided - err := command.Execute("/var/www/index.html") + err := command.Execute("/var/www/data/some_data.csv") if err != nil { panic(err) }