Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.4 KB

File metadata and controls

61 lines (41 loc) · 1.4 KB

sPoNgeCaSE

Inspired by: https://knowyourmeme.com/memes/mocking-spongebob

Actions Status

I actually don't know if it is called like that but suit yourself 😉

This tool will convert strings like this ...

This will definitely build my reputation as a software developer

... into this

THIs Will Definitely bUIld mY RepUTaTiOn AS a soFtWaRe deVelOPER

Installation

You can either download prebuild executables from the Releases tab.

Usage

CLI - Piping string into STDIN

echo "This will definitely build my reputation as a software developer" | spongecase

CLI - Passing string as argument

spongecase "This will definitely build my reputation as a software developer"

Importing as Go module

go get github.com/FabianTe/spongecase
package main

import (
	"fmt"
	"github.com/FabianTe/spongecase"
	"math/rand"
	"time"
)

func main() {
	rand.Seed(time.Now().UTC().UnixNano())
	fmt.Println(spongecase.ApplyStr("This will definitely build my reputation as a software developer"))
}

Hint: if you want different/random results (similar to the behavior of the command line version), you need to set a seed with rand.Seed first (as shown in the example).