A basic golang package for demonstration purpose. Package currently contains only one function:
func Reverse(s string) (string, error)
Go to your project root, where go.mod
file exists, than grab the library via:
go get github.com/efesogut/stringutils
package main
import (
"fmt"
"github.com/efesogut/stringutils"
)
func main(){
reversed, err := stringutils.Reverse("efesogut")
if err != nil {
log.Fatal(err)
}
fmt.Println(reversed)
}
- Efe Söğüt - Creator, maintainer
All PR’s are welcome!
fork
(https://github.com/efesogut/stringutils/fork)- Create your
branch
(git checkout -b my-feature
) commit
yours (git commit -am 'add some functionality'
)push
yourbranch
(git push origin my-feature
)- Than create a new Pull Request!
This project is licensed under MIT
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.