parser

package
v0.0.0-...-30e40ea Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name          string `toml:name`
	GroupId       string `toml:groupId`
	ArtifactId    string `toml:artifactId`
	SpringVersion string `toml:springVersion`
	JavaVersion   string `toml:javaVersion`
}

App is struct of user's application setting.

type Db

type Db struct {
	Jdbc   string `toml:jdbc`
	Driver string `toml:driver`
	Table  string `toml:table`
}

Db is struct of user's application setting.

type Task

type Task struct {
	Schedule string `toml:schedule`
	Zone     string `toml:zone`
}

type UserInput

type UserInput struct {
	App  App  `toml:App`
	Db   Db   `toml:Db`
	Task Task `toml:Task`
}

UserInput is user's project setting.

func Parse

func Parse(fileName string) UserInput

Parse method convert user's .toml file to UserInput struct.

Jump to

Keyboard shortcuts

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