config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "gossr.yaml"

Variables

This section is empty.

Functions

func Init

func Init(webPkgName string) error

Types

type Config

type Config struct {
	Dir              string            `yaml:"-"`
	Prod             bool              `yaml:"-"`
	WebDir           string            `yaml:"webDir"`           // Directory containing SSR handlers and templates
	WebPackage       string            `yaml:"webPackage"`       // Full path to the web package
	GoRunArgs        string            `yaml:"goRunArgs"`        // Arguments for `go run`
	Env              map[string]string `yaml:"env"`              // Environment variables
	GenDataProviders bool              `yaml:"genDataProviders"` // Enable basic DataProviders implementation generation (experimental)
}

func Read

func Read() (*Config, error)

Jump to

Keyboard shortcuts

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