reader

package
v0.396.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs

type Inputs struct {
	Directory   string
	SchemaFiles []*SchemaFile
}

Inputs models a set of files (Schema files and other files) that have been found in a given directory.

func FromDir

func FromDir(dirName string) (*Inputs, error)

FromDir constructs an Inputs instance by selecting relevant files from the given directory.

So far it only looks for *.keel files and puts those in the SchemaFiles field.

func FromFile

func FromFile(filename string) (*Inputs, error)

type SchemaFile

type SchemaFile struct {
	FileName string
	Contents string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL