Skip to content

Commit 3613b7a

Browse files
Update package name
1 parent b9909ed commit 3613b7a

37 files changed

+72
-72
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
#gstrings [![Build Status](https://travis-ci.org/wallclockbuilder/gstrings.svg)](https://travis-ci.org/wallclockbuilder/gstrings) [![GoDoc](https://godoc.org/github.com/wallclockbuilder/gstrings?status.svg)](http://godoc.org/github.com/wallclockbuilder/gstrings)
1+
#stringutil [![Build Status](https://travis-ci.org/wallclockbuilder/stringutil.svg)](https://travis-ci.org/wallclockbuilder/stringutil) [![GoDoc](https://godoc.org/github.com/wallclockbuilder/stringutil?status.svg)](http://godoc.org/github.com/wallclockbuilder/stringutil)
22

33
Ruby's string manipulation magic brought to Golang
44

55
Why?
66
> "What was the biggest surprise you encountered rolling out Go?" I knew the answer instantly: Although we expected C++ programmers to see Go as an alternative, instead **most Go programmers come from languages like Python and Ruby**.
77
Robert Pike, [Less is exponentially more](http://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html)
88

9-
gstrings makes all the string manipulation methods from ruby accessible in go.
9+
stringutil makes all the string manipulation methods from ruby accessible in go.
1010

1111

1212
##Install
1313
```bash
14-
go get https://github.com/wallclockbuilder/gstrings
14+
go get https://github.com/wallclockbuilder/stringutil
1515
```
1616

1717

1818
##Import
1919
```golang
20-
import "gstrings" "https://github.com/wallclockbuilder/gstrings"
20+
import "stringutil" "https://github.com/wallclockbuilder/stringutil"
2121
```
2222

2323

@@ -31,30 +31,30 @@ strings.TrimRightFunc(s, unicode.IsSpace)
3131
```
3232
This is the simple version from Ruby:
3333
```golang
34-
gstrings.Rstrip(s)
34+
stringutil.Rstrip(s)
3535
```
3636
I prefer the Ruby version.
3737

3838

3939
##Use
4040
```golang
4141
package main
42-
import "github.com/wallclockbuilder/gstrings"
42+
import "github.com/wallclockbuilder/stringutil"
4343

4444
func main() {
45-
gstrings.Capitalize("abcde") #=> "ABCDE"
46-
gstrings.Reverse("stressed") #=> "desserts"
47-
gstrings.Swapcase("Hello") #=> "hELLO"
45+
stringutil.Capitalize("abcde") #=> "ABCDE"
46+
stringutil.Reverse("stressed") #=> "desserts"
47+
stringutil.Swapcase("Hello") #=> "hELLO"
4848
}
4949
```
5050

5151

5252
##Documentation
53-
`go doc` style documentation for this package is available online at http://godoc.org/github.com/wallclockbuilder/gstrings
53+
`go doc` style documentation for this package is available online at http://godoc.org/github.com/wallclockbuilder/stringutil
5454

5555

5656
## Contributing
57-
1. Fork it ( https://github.com/wallclockbuilder/gstrings )
57+
1. Fork it ( https://github.com/wallclockbuilder/stringutil )
5858
2. Create your feature branch (`git checkout -b my-new-feature`)
5959
3. Commit your changes (`git commit -am 'Add some feature'`)
6060
4. Push to the branch (`git push origin my-new-feature`)

capitalize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"strings"

capitalize_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"fmt"

chomp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"strings"

chomp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"fmt"

chop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"strings"

chop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"fmt"

chr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
// Chr Returns the one-character string
44
// at the beginning of the string s.

chr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gstrings
1+
package stringutil
22

33
import (
44
"fmt"

doc.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/*
2-
Package gstrings provides common sense
2+
Package stringutil provides common sense
33
string manipulation methods from ruby.
44
55
How to use:
66
package main
7-
import "github.com/wallclockbuilder/gstrings"
7+
import "github.com/wallclockbuilder/stringutil"
88
99
func main() {
10-
gstrings.Capitalize("abcde") #=> "ABCDE"
11-
gstrings.Reverse("stressed") #=> "desserts"
12-
gstrings.Swapcase("Hello") #=> "hELLO"
10+
stringutil.Capitalize("abcde") #=> "ABCDE"
11+
stringutil.Reverse("stressed") #=> "desserts"
12+
stringutil.Swapcase("Hello") #=> "hELLO"
1313
}
1414
*/
15-
package gstrings
15+
package stringutil

0 commit comments

Comments
 (0)