util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvOrDefault

func EnvOrDefault(key, def string) string

func Invariant

func Invariant(condition bool, args ...interface{})

func Str2int

func Str2int(str string) int

Types

type Observable

type Observable []Observer

func (*Observable) Attach

func (observers *Observable) Attach(observer Observer)

func (Observable) NotifyAll

func (observers Observable) NotifyAll(args ...interface{})

type Observer

type Observer interface {
	Update(args ...interface{})
}

Jump to

Keyboard shortcuts

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