config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by config2go(https://github.com/xylonx/config2go) DO NOT EDIT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfgFile, watch, sourceConfig, targetFile, targetPackage string, tags string) (err error)

Setup the project config it will read the config from: 1. CLI flags 2. Special config file

the priority of them is shown below: CLI flags > config file

Types

type Setting

type Setting struct {
	SourceConfig  string   `mapstructure:"source_config" json:"source_config" yaml:"source_config" `
	Tag           string   `mapstructure:"tag" json:"tag" yaml:"tag" `
	Tags          []string `mapstructure:"tags" json:"-"`
	TargetFile    string   `mapstructure:"target_file" json:"target_file" yaml:"target_file" `
	TargetPackage string   `mapstructure:"target_package" json:"target_package" yaml:"target_package" `
	Watch         string   `mapstructure:"watch" json:"watch" yaml:"watch" `
}
var Config *Setting = new(Setting)

Jump to

Keyboard shortcuts

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