Documentation ¶
Index ¶
- type Command
- func (c *Command) BufferRemaining() int
- func (c *Command) DecodeFromReader(obj interface{}) error
- func (c *Command) EncodeFromWriter(obj interface{}) error
- func (c *Command) Marshal(obj interface{}) ([]byte, error)
- func (c *Command) PackageName(sourceFile string) (string, error)
- func (c *Command) ProcessAndMove(src string, dest string)
- func (c *Command) ProcessString(src string) (string, error)
- func (c *Command) Prompt(prompt string) string
- func (c *Command) Read(b []byte) error
- func (c *Command) ReadToWriter(r io.Reader)
- func (c *Command) ReadeBufferSize() int
- func (c *Command) ResetReader()
- func (c *Command) ResetWriter()
- func (c *Command) Runnable() bool
- func (c *Command) ScanAndReplace(replacements ...string)
- func (c *Command) ScanAndReplaceBytes(replacements ...string)
- func (c *Command) ScanFor(s string)
- func (c *Command) ScanFrom(reader io.Reader)
- func (c *Command) SyncEnv()
- func (c *Command) Unmarshal(obj interface{}, data []byte) error
- func (c *Command) UnmarshalFromConfig(obj interface{}) error
- func (c *Command) Walk(path string, fileFunc FileFunc) error
- func (c *Command) Write(b []byte) error
- func (c *Command) WriteBufferSize() int
- func (c *Command) WriteString(s string) error
- type FileFunc
- type Function
- type FunctionHandler
- type HandlerFunc
- type Splitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) BufferRemaining ¶
func (*Command) DecodeFromReader ¶
func (*Command) EncodeFromWriter ¶
func (*Command) PackageName ¶
PackageName determines the package name from sourceFile if it is within $GOPATH
func (*Command) ProcessAndMove ¶
Template reads a go template and writes it to dist given data.
func (*Command) ProcessString ¶
StrTemplate reads a go template and writes it to dist given data.
func (*Command) ReadToWriter ¶
func (*Command) ReadeBufferSize ¶
func (*Command) ResetReader ¶
func (c *Command) ResetReader()
func (*Command) ResetWriter ¶
func (c *Command) ResetWriter()
func (*Command) ScanAndReplace ¶
func (*Command) ScanAndReplaceBytes ¶
func (*Command) UnmarshalFromConfig ¶
func (*Command) WriteBufferSize ¶
func (*Command) WriteString ¶
type Function ¶
type Function struct {
HandlerFunc HandlerFunc
}
func NewFunction ¶
func NewFunction(handler HandlerFunc) Function
type FunctionHandler ¶
type FunctionHandler func(command *Command) http.HandlerFunc
type HandlerFunc ¶
func NewHandlerFunc ¶
func NewHandlerFunc(grpcServer *grpc.Server, mux *runtime.ServeMux) HandlerFunc
Click to show internal directories.
Click to hide internal directories.