new

package
v0.0.0-...-6d34543 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Files = make([]*FileContent, 0)
)

Functions

This section is empty.

Types

type FileContent

type FileContent struct {
	FileName string `json:"file_name"`
	Dir      string `json:"dir"`
	Content  string `json:"context"`
}

type Project

type Project struct {
	ServerName string

	PackageName string

	RunTrans []string

	ProPath string

	ImportServer []string

	SingleMark string

	// "true" or "false"
	Monitoring string
	// contains filtered or unexported fields
}

Project

func InitProject

func InitProject(options ...ProjectOption) *Project

func (*Project) Run

func (pj *Project) Run(v *viper.Viper)

type ProjectOption

type ProjectOption func(*Project)

func WithProjectLogger

func WithProjectLogger(logger log.Logger) ProjectOption

func WithProjectTpl

func WithProjectTpl(tpl templates.Tpl) ProjectOption

func WithProjectWriter

func WithProjectWriter(writer filedir.IfaceWriter) ProjectOption

Jump to

Keyboard shortcuts

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