package hugofs
import "github.com/gohugoio/hugo/hugofs"
Package hugofs provides the file systems used by Hugo.
Index ¶
- func Destination() afero.Fs
- func InitDefaultFs()
- func InitFs(fs afero.Fs)
- func InitMemFs()
- func Os() afero.Fs
- func SetDestination(fs afero.Fs)
- func SetSource(fs afero.Fs)
- func Source() afero.Fs
- func WorkingDir() *afero.BasePathFs
Functions ¶
func Destination ¶
Destination returns Hugo's destionation file system.
func InitDefaultFs ¶
func InitDefaultFs()
InitDefaultFs initializes with the OS file system as source and destination file systems.
func InitFs ¶
InitFs initializes with the given file system as source and destination file systems.
func InitMemFs ¶
func InitMemFs()
InitMemFs initializes with a MemMapFs as source and destination file systems. Useful for testing.
func Os ¶
Os returns an OS file system.
func SetDestination ¶
SetDestination sets Hugo's destionation file system
func SetSource ¶
SetSource sets Hugo's source file system and re-initializes dependent file systems.
func Source ¶
Source returns Hugo's source file system.
func WorkingDir ¶
func WorkingDir() *afero.BasePathFs
WorkingDir returns a read-only file system restricted to the project working dir.
Source Files ¶
- Version
- v0.18.1
- Published
- Dec 29, 2016
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 3 minutes ago –
Tools for package owners.