github.com/clubpay/ronykit/example/ex-08-echo v0.0.0-20260906221239-92ed62e40f2a
Go module source archive layoutArchive contains go.mod
SHA-256ef565330c2238c8335ed0afabaef8f00908c929ea7300d5f167a29931346b12d
MaleculeMd₃(InPa₂)
Evidence
1package main
2
3import (
4 "context"
5 "fmt"
6 "os"
7
8 "github.com/clubpay/ronykit/kit"
9 "github.com/clubpay/ronykit/kit/utils"
10 "github.com/clubpay/ronykit/rony"
11)
12
⋯4 lines
18:4… ony.WithCORS(rony.CORSConfig{}),
19 )
20
21 // Set up the server with the initial state, which is a pointer to EchoCounter
22 // We can have as many states as we want. But each handler can only work with
23 // one state. In other words, w …
28:5… ny.EmptyState(),
29 // Register the echo handler for both GET /echo and GET /echo/{id}
30 // This way all the following requests are valid:
31 rony.WithMiddleware[rony.EMPTY](printMW),
32 rony.Wi …
1BSD 3-Clause License
2
3Copyright (c) 2021, Ehsan Moosa
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8
91. Redistributions of source code must retain the above copyright notice, this
10 list of conditions and the following disclaimer.
11
122. Redistributions in binary form must rep …
16:49… the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21AND ANY EXPRESS O …
No evidence locations were recorded for this file. Raw result