From c49aa7990b99293e2b743542aa3b311f6152608e Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Fri, 23 Apr 2021 14:13:13 +0100 Subject: [PATCH] Documentation. --- file.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file.go b/file.go index ae98daf..ab52ada 100644 --- a/file.go +++ b/file.go @@ -69,6 +69,9 @@ func Filename(filename string) Option { // // macOS hides filename filters from the user, // and only supports filtering by extension (or "type"). +// +// Patterns may use the GTK syntax on all platforms: +// https://developer.gnome.org/pygtk/stable/class-gtkfilefilter.html#method-gtkfilefilter--add-pattern type FileFilter struct { Name string // display string that describes the filter (optional) Patterns []string // filter patterns for the display string