config

package
v0.0.0-...-e256ce7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Remote   []string `yaml:"remote"`
	Local    []string `yaml:"local"`
	Port     int      `yaml:"port"`
	TmpDir   string   `yaml:"tmpDir"`
	Template string   `yaml:"template"`
}

Config represents the grabbers settings. Example yaml:

# your remote git repos, which will be pulled
remote:
- https://github.com/worldiety/wikigrabber
- https://github.com/worldiety/goup

# your local folders, which are just interpreted as-is
local:
- /Users/user/home/git/my/project

# either an https git link or a local folder which contains the template files
template:

# the local server to launch and serve the merged results from
port: 8080

func (*Config) Load

func (c *Config) Load(fname string) error

Load parses the file as yaml

Jump to

Keyboard shortcuts

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