- go report badge

pull/15/head
Emir Pasic 9 years ago
parent 0631cc2647
commit 4d3c47ce2a

@ -1,4 +1,4 @@
[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) [![Build Status](https://travis-ci.org/emirpasic/gods.svg)](https://travis-ci.org/emirpasic/gods) [![PyPI](https://img.shields.io/pypi/l/Django.svg?maxAge=2592000)](https://github.com/emirpasic/gods/blob/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) [![Build Status](https://travis-ci.org/emirpasic/gods.svg)](https://travis-ci.org/emirpasic/gods) [![Go Report Card](https://goreportcard.com/badge/emirpasic/gods)](https://goreportcard.com/report/emirpasic/gods) [![PyPI](https://img.shields.io/pypi/l/Django.svg?maxAge=2592000)](https://github.com/emirpasic/gods/blob/master/LICENSE)
# GoDS (Go Data Structures)

@ -80,7 +80,7 @@ func (m *Map) Size() int {
func (m *Map) Keys() []interface{} {
keys := make([]interface{}, m.Size())
count := 0
for key, _ := range m.m {
for key := range m.m {
keys[count] = key
count += 1
}

@ -96,7 +96,7 @@ func (set *Set) Clear() {
func (set *Set) Values() []interface{} {
values := make([]interface{}, set.Size())
count := 0
for item, _ := range set.items {
for item := range set.items {
values[count] = item
count += 1
}
@ -106,7 +106,7 @@ func (set *Set) Values() []interface{} {
func (set *Set) String() string {
str := "HashSet\n"
items := []string{}
for k, _ := range set.items {
for k := range set.items {
items = append(items, fmt.Sprintf("%v", k))
}
str += strings.Join(items, ", ")

Loading…
Cancel
Save