This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { simpleGit } from 'simple-git'; | |
// NOTE: simple-git returns a promise, however, the error handling is not great | |
const git = simpleGit({ | |
errors(err, res) { | |
if (err instanceof Error) { | |
return err; | |
} | |
if (res.exitCode === 0) { | |
return undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package benchmark | |
import ( | |
"encoding/json" | |
"testing" | |
) | |
var innerJson []byte = []byte(`{ "foo": "bar" }`) | |
var fullJson []byte = []byte(`{ "name": "foo", "value": { "foo": "bar" }}`) | |
var fin []byte |