Skip to content

Commit 08b1116

Browse files
refactor after blake API changes
1 parent 7d642e7 commit 08b1116

35 files changed

+591
-607
lines changed

.vscode/launch.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Package",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${fileDirname}"
13+
},
14+
15+
{
16+
"name": "Test Current File",
17+
"type": "go",
18+
"request": "launch",
19+
"mode": "test",
20+
"remotePath": "",
21+
"port": 2345,
22+
"host": "127.0.0.1",
23+
"program": "${file}",
24+
"env": {},
25+
"args": [],
26+
"showLog": true
27+
}
28+
]
29+
}

benchmark_test.go

-335
This file was deleted.

bool.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (s *BoolSchema) MarshalJSON() ([]byte, error) {
3030
}
3131

3232
// Bytes encodes the schema in a portable binary format
33-
func (s *BoolSchema) MarshalSchemer() []byte {
33+
func (s *BoolSchema) MarshalSchemer() ([]byte, error) {
3434
// bool schemas are 1 byte long
3535
var schema []byte = []byte{BoolSchemaMask}
3636

@@ -39,7 +39,7 @@ func (s *BoolSchema) MarshalSchemer() []byte {
3939
schema[0] |= 0x80
4040
}
4141

42-
return schema
42+
return schema, nil
4343
}
4444

4545
// Encode uses the schema to write the encoded value of i to the output stream

0 commit comments

Comments
 (0)