A basic golang package for demonstration purpose. Package currently contains only one function:
func Reverse(s string) string
Go to your project root, where go.mod
file exists, than grab the library via:
go get github.com/mrtkmynsndev/stringutils-demo@latest
package main
import (
"fmt"
"github.com/mrtkmynsndev/stringutils-demo"
)
func main(){
reversed := stringutils.Reverse("mert")
fmt.Println(reversed) // trem
}
make help
Commands usage:
make <command>
commands:
test run tests
bench run benchmark tests
doc run godoc server at 3000 unless PORT env-var is set
make test
: Runs testsmake bench
: Runs benchmark testsmake doc
: Runs godoc server on port 3000. UsePORT
environment variable for different port ->PORT=4000 make doc
- Mert Kimyonşen - Creator, maintainer
All PR’s are welcome!
fork
(https://github.com/mrtkmynsndev/stringutils-demo/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.