feat(wasm-go): add wasm go plugin unit test and ci workflow (#2809)

This commit is contained in:
Jingze
2025-08-28 20:02:03 +08:00
committed by GitHub
parent 3e0a5f02a7
commit a00b810be5
138 changed files with 27695 additions and 313 deletions

View File

@@ -14,6 +14,9 @@ func SendResponse(statusCode uint32, statusCodeDetails string, contentType, body
}
func CreateHeaders(kvs ...string) [][2]string {
if len(kvs)%2 != 0 {
kvs = kvs[:len(kvs)-1]
}
headers := make([][2]string, 0, len(kvs)/2)
for i := 0; i < len(kvs); i += 2 {
headers = append(headers, [2]string{kvs[i], kvs[i+1]})