config

package
v0.0.0-...-7e22817 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config Provides loading local configuration.

Source code and other details for the project are available at GitHub:

https://github.com/archervanderwaal/jadetrans

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Youdao YoudaoConfig `yaml:"youdao"`
}

Config jadetrans global config.

func LoadConfig

func LoadConfig() *Config

LoadConfig returns jadetrans config.

type YoudaoConfig

type YoudaoConfig struct {
	AppKey    string `yaml:"appKey"`
	AppSecret string `yaml:"appSecret"`
}

YoudaoConfig configuration information encapsulated with youdao Translation.

Jump to

Keyboard shortcuts

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