config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigPath = "gocden.toml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Source string `toml:"src" validate:"required"`
	Output string `toml:"out" validate:"required"`
}

type Config

type Config struct {
	Name        string   `toml:"name" validate:"required"`
	Description string   `toml:"description"`
	Url         string   `toml:"url"`
	Social      *Social  `toml:"social"`
	Build       *Build   `toml:"build"`
	Options     *Options `toml:"options"`
	Serve       *Serve   `toml:"serve"`
}

func ReadAndValidateOrCreate

func ReadAndValidateOrCreate(wd string) (*Config, error)

type Options

type Options struct {
	Ordering bool `toml:"ordering"`
}

type Serve

type Serve struct {
	Port int `toml:"port"`
}

type Social

type Social struct {
	Twitter   string `toml:"twitter"`
	Facebook  string `toml:"facebook"`
	Instagram string `toml:"instagram"`
	LinkedIn  string `toml:"linkedin"`
	GitHub    string `toml:"github"`
	GitLab    string `toml:"gitlab"`
	Bitbucket string `toml:"bitbucket"`
}

Jump to

Keyboard shortcuts

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