Documentation ¶
Overview ¶
Package boot contains an extension of goyek.Main which additionally defines flags and configures the flow in a convenient way.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
func Main()
Main is an extension of goyek.Main which additionally defines flags and uses the most useful middlewares.
Example ¶
// define a flag used by a task msg := flag.String("msg", "hello world", `message to display by "hi" task`) // define a task printing the message (configurable via flag) goyek.Define(goyek.Task{ Name: "hi", Usage: "Greetings", Action: func(a *goyek.A) { a.Log(*msg) }, }) // run the build pipeline boot.Main()
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.