config

package
v0.0.0-...-2390bf3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Channel struct {
		Title       string `yaml:"title"`
		Link        string `yaml:"link"`
		Description string `yaml:"description"`
		Copyright   string `yaml:"copyright"`
		Url         string `yaml:"url"`
		Language    string `yaml:"language"`
	}
	Image struct {
		Title  string `yaml:"title"`
		Url    string `yaml:"url"`
		Itunes string `yaml:"itunes"`
	}
	Items struct {
		Guid struct {
			BaseUrl     string `yaml:"baseUrl"`
			IsPermalink bool   `yaml:"isPermaLink"`
		}
		Link struct {
			BaseUrl string `yaml:"baseUrl"`
		}
		Enclosure struct {
			BaseUrl string `yaml:"baseUrl"`
		}
		Date struct {
			From   string `yaml:"from"`
			Format string `yaml:"format"`
		}
		Filter struct {
			MinimumSize int64 `yaml:"minimumSize"`
		}
	}
	Index struct {
		DateFormat string `yaml:"dateFormat"`
		Template   string `yaml:"template"`
	}
}

func Parse

func Parse(file string) (*Configuration, error)

Jump to

Keyboard shortcuts

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