Documentation ¶
Overview ¶
Copyright (C) 2024 early (LGPL)
Copyright (C) 2024 early (LGPL)
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type FileOpener ¶
func File ¶
func File(filename string, ignorePackages ...string) FileOpener
File returns an Opener that Opens() a file. If filename is a relative path, it is considered relative to the *calling file*, not the working directory. If ignorePackages is nonempty, callers in any package specified are ignored.
type Opener ¶
type Opener interface {
Open() (io.ReadCloser, error)
}
type OpenerFunc ¶
type OpenerFunc func() (io.ReadCloser, error)
func (OpenerFunc) Open ¶
func (opener OpenerFunc) Open() (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.