config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiURL

func ApiURL(path string) string

func ClientId

func ClientId() string

func ClientSecret

func ClientSecret() string

func Locales

func Locales() []string

func OutputDir

func OutputDir() string

func OutputFormat added in v1.1.0

func OutputFormat() string

func ProjectId

func ProjectId() string

func Read

func Read(exampleConfig string)

Types

type Config

type Config struct {
	Host string `yaml:"host"`

	ProjectId    string `yaml:"projectId"`
	ClientId     string `yaml:"clientId"`
	ClientSecret string `yaml:"clientSecret"`

	Locales []string `yaml:"locales"`

	OutputDir    string `yaml:"outputDir"`
	OutputFormat string `yaml:"outputFormat"`
}

Jump to

Keyboard shortcuts

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