MCPcopy Create free account
hub / github.com/diillson/chatcli / NewJSONReader

Function NewJSONReader

utils/utils.go:130–132  ·  view source on GitHub ↗

NewJSONReader cria um io.Reader a partir de um []byte para enviar em requisições HTTP

(data []byte)

Source from the content-addressed store, hash-verified

128
129// NewJSONReader cria um io.Reader a partir de um []byte para enviar em requisições HTTP
130func NewJSONReader(data []byte) io.Reader {
131 return bytes.NewReader(data)
132}
133
134func LogStartupInfo(logger *zap.Logger) {
135 logger.Info("ChatCLI iniciado",

Callers 10

SendPromptMethod · 0.92
sendRequestMethod · 0.92
SendPromptMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92
sendRequestMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected