cakeday

package module
v0.0.0-...-c3d37b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2014 License: GPL-3.0 Imports: 5 Imported by: 3

README

cakeday

Build Status

Author: Brian Tomlinson brian.tomlinson@linux.com

Description

Cakeday is a small library that provides a Reddit user's "Cake Day" given a Reddit username as input. It returns this date in the format "d M".

Example: 6 Jun

Installation

    $ go get github.com/darthlukan/cakeday

Usage

    package main

    import (
        "fmt"
        "github.com/darthlukan/cakeday"
    )

    func main() {
        username := "darthlukan"
        response, err := cakeday.Get(username)
        if err != nil {
            panic(err)
        }

        fmt.Printf("%v\n", response)
    }

This outputs:

    Reddit Cake Day for darthlukan is: 6 Jun

License

GPLv3, see LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(username string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL