// Echo returns the same message
1421
func Echo(ctx *cli.Context) command.Command {
	usage := "echo [text]"
	desc := "Returns the [text]"

	return command.NewCommand("echo", usage, desc, func(args ...string) ([]byte, error) {
		if len(args) < 2 {
			return []byte("echo what?"), nil
		}
		return []byte(strings.Join(args[1:], " ")), nil
	})
}
803805
func (f *FooYARPCServer) EchoOut(server examplepb.FooServiceEchoOutYARPCServer) (*examplepb.EchoOutResponse, error) {
	var allMessages []string
	call := yarpc.CallFromContext(server.Context())
	for k, v := range f.expectedHeaders.Items() {
		if call.Header(k) != v {
			return nil, yarpcerrors.InvalidArgumentErrorf("did not receive proper headers, missing %q:%q", k, v)
		}
	}
	for request, err := server.Recv(); err != io.EOF; request, err = server.Recv() {
		if err != nil {
			return nil, err
		}
		if request == nil {
			return nil, errRequestNil
		}
		if request.Message == "" {
			return nil, errRequestMessageNil
		}
		allMessages = append(allMessages, request.Message)
	}
	return &examplepb.EchoOutResponse{
		AllMessages: allMessages,
	}, nil
}
189795
func (v *EchoResponse) String() string {
	if v == nil {
		return "<nil>"
	}

	var fields [2]string
	i := 0
	fields[i] = fmt.Sprintf("Message: %v", v.Message)
	i++
	fields[i] = fmt.Sprintf("Count: %v", v.Count)
	i++

	return fmt.Sprintf("EchoResponse{%v}", strings.Join(fields[:i], ", "))
}
653217
func (m mirrorMessage) String() string {
	return console.Colorize("Mirror", fmt.Sprintf("`%s` -> `%s`", m.Source, m.Target))
}
174931
func echoOn(fd []uintptr) {
	// Turn on the terminal echo.
	pid, e := syscall.ForkExec(sttyArg0, sttyArgvEOn, &syscall.ProcAttr{Dir: execCWDir, Files: fd})

	if e == nil {
		_, _ = syscall.Wait4(pid, &ws, 0, nil)
	}
}
640133
func (s *Strobe) Pulse(message string) {
	s.lock.Lock()
	defer s.lock.Unlock()
	for l := range s.listeners {
		go s.send(l, message)
	}
}
122559
func (m *stackMessage) String() string {
	return strings.Trim(strings.Join([]string{m.trace.String(), m.Composer.String()}, " "), " \n\t")
}
1237463
func (vr *ValidationResult) Message(msg string) *ValidationResult {
	vr.message = msg
	return vr
}
1160140
func (e *Echo) File(path, file string) {
	e.Get(path, func(c Context) error {
		return c.File(file)
	})
}
1288991
func New() (e *Echo) {
	return NewWithContext(func(e *Echo) Context {
		return NewContext(nil, nil, e)
	})
}
583173
func (e *Event) Msg(msg string) {
	if e == nil {
		return
	}
	e.msg(msg)
}
256959
func (p Message) String() string {
	var buf bytes.Buffer
	fmt.Fprintf(&buf, "%s", p.Comment.String())
	fmt.Fprintf(&buf, "msgid %s", encodePoString(p.MsgId))
	if p.MsgIdPlural != "" {
		fmt.Fprintf(&buf, "msgid_plural %s", encodePoString(p.MsgIdPlural))
	}
	if p.MsgStr != "" {
		fmt.Fprintf(&buf, "msgstr %s", encodePoString(p.MsgStr))
	}
	for i := 0; i < len(p.MsgStrPlural); i++ {
		fmt.Fprintf(&buf, "msgstr[%d] %s", i, encodePoString(p.MsgStrPlural[i]))
	}
	return buf.String()
}
199500
func (v *EchoResponse) GetMessage() (o string) {
	if v != nil {
		o = v.Message
	}
	return
}
1244306
func (c *Client) Echo(m interface{}, msgHandler func(msg *models.Message) error) error {
	_, err := c.conn.SendRequest("echo", m, func(ctx *neptulon.ResCtx) error {
		var msg models.Message
		if err := ctx.Result(&msg); err != nil {
			return fmt.Errorf("client: echo: error reading response: %v", err)
		}
		return msgHandler(&msg)
	})

	if err != nil {
		return fmt.Errorf("client: echo: error sending request: %v", err)
	}

	return nil
}
137674
func (e *Echo) Any(path string, h interface{}, middleware ...interface{}) {
	for _, m := range methods {
		e.add(m, "", path, h, middleware...)
	}
}
553332
func EchoEngine() *echo.Echo {
	e := echo.New()

	e.GET("/hello", echoHelloHandler())
	e.GET("/text", echoTextHandler())
	e.GET("/query", echoQueryHandler())

	e.POST("/form", echoPostFormHandler())
	e.POST("/json", echoJSONHandler())
	e.PUT("/update", echoPutHandler())
	e.DELETE("/delete", echoDeleteHandler())

	e.PATCH("/patch", echoHelloHandler())
	e.OPTIONS("/options", echoHelloHandler())
	e.HEAD("/head", echoHelloHandler())

	return e
}
640483
func (EchoProtobuf) Echo(_ context.Context, request *crossdockpb.Ping) (*crossdockpb.Pong, error) {
	if request == nil {
		return nil, nil
	}
	return &crossdockpb.Pong{Boop: request.Beep}, nil
}