Updated readme example to use correct mime for the filetype used later in the example

This commit is contained in:
sloumdrone 2019-07-03 16:48:17 -07:00
parent 8d07bea719
commit 7ac598e5dc
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}