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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址