Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request is an abstraction over the actual command with flags. This abstraction is useful because it allows us to create cmd applications in same way we would create a HTTP server application. Gofr's http.Request is another such abstraction.
func NewRequest ¶
NewRequest creates a Request from a list of arguments. This way we can simulate running a command without actually doing it. It makes the code more testable this way.
Click to show internal directories.
Click to hide internal directories.