Documentation
¶
Index ¶
- Variables
- func ConvertHledgerGlob(pattern string) string
- func IsGlobPattern(path string) bool
- func ResolvePath(basePath, includePath string) string
- func ResolvePathSafe(basePath, includePath string) (string, error)
- type ErrorKind
- type FileSource
- type Limits
- type LoadError
- type Loader
- type ResolvedJournal
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPathTraversal = errors.New("path traversal detected")
)
Functions ¶
func ConvertHledgerGlob ¶
func IsGlobPattern ¶
func ResolvePath ¶
func ResolvePathSafe ¶
Types ¶
type FileSource ¶
type Limits ¶
func DefaultLimits ¶
func DefaultLimits() Limits
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) ClearCache ¶
func (l *Loader) ClearCache()
func (*Loader) InvalidateFile ¶
func (*Loader) LoadFromContent ¶
func (l *Loader) LoadFromContent(path, content string) (*ResolvedJournal, []LoadError)
type ResolvedJournal ¶
type ResolvedJournal struct {
Primary *ast.Journal
Files map[string]*ast.Journal
Errors []LoadError
}
func NewResolvedJournal ¶
func NewResolvedJournal(primary *ast.Journal) *ResolvedJournal
func (*ResolvedJournal) AllDirectives ¶
func (r *ResolvedJournal) AllDirectives() []ast.Directive
func (*ResolvedJournal) AllIncludes ¶
func (r *ResolvedJournal) AllIncludes() []ast.Include
func (*ResolvedJournal) AllTransactions ¶
func (r *ResolvedJournal) AllTransactions() []ast.Transaction
Click to show internal directories.
Click to hide internal directories.