More OpenFile() documentation.

This commit is contained in:
Pietro Gagliardi 2014-08-26 13:58:39 -04:00
parent ecc02ee732
commit ff2ad05270
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ type windowDialog interface {
// filename is the selected filename, or an empty string if no file was chosen. // filename is the selected filename, or an empty string if no file was chosen.
// OpenFile does not ensure that f remains alive; the programmer is responsible for this. // OpenFile does not ensure that f remains alive; the programmer is responsible for this.
// If possible on a given system, OpenFile() will not dereference links; it will return the link file itself. // If possible on a given system, OpenFile() will not dereference links; it will return the link file itself.
// Hidden files will not be hidden by OpenFile().
func OpenFile(win Window, f func(filename string)) { func OpenFile(win Window, f func(filename string)) {
if win == nil { if win == nil {
panic("Window passed to OpenFile() cannot be nil") panic("Window passed to OpenFile() cannot be nil")