Documentation
¶
Overview ¶
Package author scaffolds standalone projects from explicitly published workload files.
Index ¶
- Constants
- Variables
- func Builtin(source fs.FS, origin, descriptor string) fs.FS
- func Descriptor(files map[string][]byte, name string) (string, error)
- func ModuleName(name string) string
- func Project(name, modulePath, version string, published map[string][]byte, ...) (map[string][]byte, error)
- func Read(source fs.FS) (map[string][]byte, error)
- func Starter(name string, sourcePackage ...string) map[string][]byte
- func Write(destination string, files map[string][]byte) (returnErr error)
Constants ¶
View Source
const (
SDK = "github.com/stroppy-io/stroppy/v6"
)
Variables ¶
View Source
var ( ErrInvalidSource = errors.New("invalid published source") )
View Source
var ErrDestination = errors.New("destination must be a new or empty real directory")
Functions ¶
func Descriptor ¶
Descriptor finds the exported Test descriptor matching a workload's registered name.
func ModuleName ¶
func Project ¶
func Project( name, modulePath, version string, published map[string][]byte, sourcePackage ...string, ) (map[string][]byte, error)
Project creates root main/module files and restores package-relative publication.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.