config

package
v0.0.1-20230324 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Env       string     `yaml:"env"`
	LogPath   string     `yaml:"logPath"`
	GtpConfig *GtpConfig `yaml:"gptConfig"`
}

Config example config

func GetConfig

func GetConfig() *Config

GetConfig 获取配置

type GtpConfig

type GtpConfig struct {
	// gtp apikey
	ApiKey string `yaml:"api_key"`
}

GtpConfig 项目配置

Jump to

Keyboard shortcuts

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