/go-leftpad

Turning Go into Node

Primary LanguageGoOtherNOASSERTION

Go-LeftPad

Ever wondered why simple things are so complicated? Me too. Which is why I've taken the best from Node.js and brought it to Go.

Welcome to the marvel of unnecessity. Introducing "go-leftpad", because why not?

Description

"Turning Go into Node" - I heard you liked to use tiny Node packages for everything, so I've made a Go package for one simple function. Now you can pretend you're in JavaScript land, but with the speed and efficiency of Go!

Installation

Don't even sweat. As simple as a Kardashian's life:

go get github.com/briandoesdev/go-leftpad

Usage

Who knew left padding could be so fun... and unnecessary?

package main

import (
	"fmt"

	. "github.com/briandoesdev/go-leftpad"
)

func main() {
	//Outputs:   foo
	fmt.Println(Leftpad("foo", 5, ' '))
}

Contributing

Looking to over-engineer your career? Send a pull request! Extra points for breaking this code down into several other unnecessary packages.

FAQ

Q: Why Go-LeftPad?

 Because coding should be fun, even if it means making fun of ourselves!

Q: Why would I need this in Go?

 You don't. But can you resist the charm of this tiny, simple and absolutely unnecessary module? I think not!

Q: Why did you?

 I ask that everyday to myself.

License

MIT License. Because sharing is caring, especially when it comes to overcomplicated solutions to simple problems.

Btw, this is a joke package. please dont actually use this.