go-kickable

A Go package · est. on the boombox

Can I Kick It?

go-kickable answers the age old question — and showcases microservice technologies and patterns while it's at it. Currently only the word "it" is kickable.

kickable — live check
Go 1.21+ · Go Modules · MIT

Use the package

Import it, ask the question, get the only correct answer.

package main

import (
    "fmt"
    "github.com/defstream/go-kickable"
)

func main() {
    response := kickable.CanIKick("it")
    fmt.Println(response) // Yes, yes you can.
}

Or the CLI

Clone, make install, and kick from your terminal.

$ git clone https://github.com/defstream/go-kickable
$ cd go-kickable
$ make install
$ cani -kick "it"
Yes, yes you can.

The API

func Kickable(it string) bool

Returns true if kickable, otherwise false. Case-insensitive — "IT" kicks too.

func CanIKick(it string) string

Returns a string message indicating whether it is kickable or not.

Yes string

The message returned when an item is kickable: "Yes, yes you can."

No string

The message returned when an item is not kickable: "No."

Microservice Showcase

One tiny question, served every way imaginable. Each implementation lives in service/ and builds with make all.