package fs
import "github.com/azin-lang/Azin/internal/fs"
Package fs implements file operations for Azin source files.
Index
Constants
const SourceExtension = ".az"
SourceExtension is the expected file extension for source files.
Functions
func ReadSourceFile
func ReadSourceFile(path string, ignoreExtension bool) ([]byte, error)
ReadSourceFile reads the contents of a source file.
Types
type Resolver
type Resolver struct { // contains filtered or unexported fields }
func NewResolver
func NewResolver(searchPaths []string) *Resolver
func (*Resolver) Resolve
func (r *Resolver) Resolve(importPath, fromDir string) (string, error)