I hereby claim:
- I am danielfbm on github.
- I am danielfbm (https://keybase.io/danielfbm) on keybase.
- I have a public key ASBS72HgFQI2hRtQPdk_oeqNeFRjKBF9elS9W3poLKYicQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"time" | |
redis "gopkg.in/redis.v5" | |
) | |
// CircuitBreaker responsible for creating a circuit breaking | |
// logic for redis client |
package main | |
func main() { | |
var data interface{} | |
ctx.ReadJSON(&data) | |
if obj, ok := data.(map[string]interface{}); ok { | |
obj["name"] = "" | |
} else if array, ok := data.([]interface{}); ok { |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type MyStruct struct { | |
Name string | |
} |
package main | |
import ( | |
"errors" | |
"log" | |
"github.com/libgit2/git2go" | |
) | |
func mergeBranches(repo *git.Repository, sourceBranchName string, destinationBranchName string) error { | |
// Assuming that these two branches are local already | |
sourceBranch, err := repo.LookupBranch(sourceBranchName, git.BranchLocal) |
package main | |
import ( | |
"errors" | |
"log" | |
"github.com/libgit2/git2go" | |
) | |
func checkoutBranch(repo *git.Repository, branchName string) error { | |
checkoutOpts := &git.CheckoutOpts{ |