Draft: poop

This commit is contained in:
2025-11-10 13:16:29 +08:00
parent dbd2ed6469
commit 590687d968
12 changed files with 309 additions and 43 deletions

View File

@@ -12,7 +12,8 @@ func ping() {
for _, msg := range msgs {
fmt.Printf("client sending: '%s'\n", msg)
resp, err := tcp.Get(":8080", "/test", map[string]string{"msg": msg})
resp, err := tcp.Get(":8080", "/test/ping",
map[string]string{"msg": msg})
if err != nil {
panic(err)
}
@@ -40,6 +41,9 @@ func pull() {
var clientCmd = &cobra.Command{
Use: "client",
Run: func(cmd *cobra.Command, args []string) {
ping()
},
}
func init() {
}