Skip to content

Commit 01bc36c

Browse files
authored
Adding Go values msgpack conversion for raw types (#57)
1 parent beb45e8 commit 01bc36c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/go/constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const translations: Map<string, string> = new Map<string, string>([
2929
["f32", "float32"],
3030
["f64", "float64"],
3131
["datetime", "time.Time"],
32+
["raw", "[]byte"],
3233
]);
3334

3435
export const IMPORTS = {

src/go/msgpack_constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const msgpackDecodeFuncs: Map<string, string> = new Map<string, string>([
4949
["f64", "ReadFloat64"],
5050
["bytes", "ReadByteArray"],
5151
["any", "ReadAny"],
52+
["raw", "ReadRaw"],
5253
]);
5354

5455
export const msgpackDecodeNillableFuncs: Map<string, string> = new Map<
@@ -89,6 +90,7 @@ export const msgpackEncodeFuncs: Map<string, string> = new Map<string, string>([
8990
["f64", "WriteFloat64"],
9091
["bytes", "WriteByteArray"],
9192
["any", "WriteAny"],
93+
["raw", "WriteRaw"],
9294
]);
9395

9496
export const msgpackEncodeNillableFuncs: Map<string, string> = new Map<

0 commit comments

Comments
 (0)