internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Author = "Iván Corrales Solera <ivan.corrales.solera@gmail.com>"

Author value

View Source
	
	   ____    U  ___ u    _      
	U /"___|u   \/"_ \/U  /"\  u  
	\| |  _ /   | | | | \/ _ \/   
	 | |_| |.-,_| |_| | / ___ \   
	  \____| \_)-\___/ /_/   \_\  
	  _)(|_       \\    \\    >>  
	 (__)__)     (__)  (__)  (__) 
 
          Golang Oriented to Aspects
               
                version v` + Version + ` 
`

Banner value

View Source
var BuildDate = "-"

BuildDate value

View Source
var Commit = "-"

Commit value

View Source
var Compiler = "-"

Compiler value

View Source
var Version = "0.0.0"

Version value

Functions

func ExecuteMain

func ExecuteMain(goCmd *exec.Cmd, settings *Settings) int

ExecuteMain main function

func RemoveBeyondArguments

func RemoveBeyondArguments(input []string) []string

RemoveBeyondArguments removes beyond arguments from the list of arguments

func Run

func Run(rootPkg string, packages map[string]*parser.Package, outputDir string)

Run main function in charge of orchestrating code generation

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor struct for wrapping go commands

func GoCommand

func GoCommand(settings *Settings, args []string) *Executor

GoCommand reutrns the go command to be executed

func (*Executor) Do

func (e *Executor) Do() *exec.Cmd

Do execute go command

type Settings

type Settings struct {
	Path        string
	Project     string
	Output      string
	Pkg         string
	Excludes    []string
	ExcludeDirs map[string]bool
	Verbose     bool
	Work        bool
}

Settings Beyond settings

func BeyondSettingFromCommandLine

func BeyondSettingFromCommandLine(args []string) *Settings

BeyondSettingFromCommandLine returns the BeyondSettings from the command line args

Jump to

Keyboard shortcuts

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