mycfg

package
v0.0.0-...-2833d4d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReGet

func ReGet(compile, cfgfile string) (res string)

ReGet 配置匹配模块

func StringRead

func StringRead(fileName string) string

StringRead 配置文件读取模块

Types

type Cfg

type Cfg struct {
	IP             string //IP地址
	Username       string //用户名
	Password       string //密码
	Port           int    //端口号
	LocalMycnfPath string //本地mycnf路径
	RemoteCnfPath  string //服务器mycnf路径
	MysqlPath      string //指定MySQL安装路径
	InstallSQLPath string //指定初始化SQL文件位置
	MysqlTarPath   string //指定mysql安装包位置
}

Cfg 配置结构体

func GetCfg

func GetCfg(file string) (cfg *Cfg)

GetCfg 得到配置信息

Jump to

Keyboard shortcuts

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