config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfigFile

func GetDefaultConfigFile() string

GetDefaultConfigFile returns the path to the default md-publisher.conf file

func ReadConfig

func ReadConfig(configFile string, config *Config) error

ReadConfig reads the configuration from a TOML (a ini like file) file.

Types

type Config

type Config struct {
	NoImages          bool   // do not upload images
	MediumAccessToken string // access token for medium
}

Config is the configuration of the md-publisher tool.

Jump to

Keyboard shortcuts

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