Documentation.

This commit is contained in:
Nuno Cruces 2022-03-29 00:14:51 +01:00
parent 6494eb386b
commit 74cdc9ad9e

View file

@ -71,8 +71,8 @@ func Filename(filename string) Option {
// and only supports filtering by extension // and only supports filtering by extension
// (or "uniform type identifiers"). // (or "uniform type identifiers").
// //
// Patterns may use the GTK syntax on all platforms: // Patterns may use the fnmatch syntax on all platforms:
// https://developer.gnome.org/pygtk/stable/class-gtkfilefilter.html#method-gtkfilefilter--add-pattern // https://docs.python.org/3/library/fnmatch.html
type FileFilter struct { type FileFilter struct {
Name string // display string that describes the filter (optional) Name string // display string that describes the filter (optional)
Patterns []string // filter patterns for the display string Patterns []string // filter patterns for the display string