Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
6boris committed Mar 16, 2019
1 parent ad79dc9 commit ccc608b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions cmd/github/contribution_test.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
package github

import (
"encoding/json"
"fmt"
"testing"
)

func TestGetContributorString(t *testing.T) {
con_buffer := getContributorBufer()
contributors := []Contributor{}
err := json.Unmarshal(con_buffer, &contributors)
if err != nil {
fmt.Println(err.Error())
}
byt, _ := json.MarshalIndent(contributors, " ", " ")
fmt.Println(string(byt))

//con_buffer := getContributorBufer()
//contributors := []Contributor{}
//err := json.Unmarshal(con_buffer, &contributors)
//if err != nil {
// fmt.Println(err.Error())
//}
//byt, _ := json.MarshalIndent(contributors, " ", " ")
//fmt.Println(string(byt))
}

0 comments on commit ccc608b

Please sign in to comment.