mrtkmynsndev / stringutils-demo

demo for creation go package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version Test Go MIT License Documentation Go Report Card

stringutils

A basic golang package for demonstration purpose. Package currently contains only one function:

func Reverse(s string) string

Installation

Go to your project root, where go.mod file exists, than grab the library via:

go get github.com/mrtkmynsndev/stringutils-demo@latest

Usage

package main

import (
	"fmt"

	"github.com/mrtkmynsndev/stringutils-demo"
)

func main(){
	reversed := stringutils.Reverse("mert")
	fmt.Println(reversed) // trem
}

Makefile

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 tests
  • make bench: Runs benchmark tests
  • make doc: Runs godoc server on port 3000. Use PORT environment variable for different port -> PORT=4000 make doc

Contributor(s)


Contribute

All PR’s are welcome!

  1. fork (https://github.com/mrtkmynsndev/stringutils-demo/fork)
  2. Create your branch (git checkout -b my-feature)
  3. commit yours (git commit -am 'add some functionality')
  4. push your branch (git push origin my-feature)
  5. Than create a new Pull Request!

License

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.

About

demo for creation go package

License:MIT License


Languages

Language:Go 64.4%Language:Makefile 35.6%