utils

package
v0.0.0-...-748f5db Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetenvOrDefault

func GetenvOrDefault(key, fallback string) string

GetenvOrDefault retrieves the value of the environment variable named by the `key`. If the value is empty `fallback` is returned instead.

Types

type TweetsByCreationDateDesc

type TweetsByCreationDateDesc []*model.Tweet

TweetsByCreationDateDesc is helper struct to implement sorting of `Tweet` slices by creation date.

func (TweetsByCreationDateDesc) Len

func (s TweetsByCreationDateDesc) Len() int

func (TweetsByCreationDateDesc) Less

func (s TweetsByCreationDateDesc) Less(i, j int) bool

func (TweetsByCreationDateDesc) Swap

func (s TweetsByCreationDateDesc) Swap(i, j int)

Jump to

Keyboard shortcuts

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