mockgen

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	GetSetter
}

Controller is a struct demonstrating one way to initialize interfaces

func (*Controller) GetThenSet

func (c *Controller) GetThenSet(key, value string) error

GetThenSet checks if a value is set. If not it sets it.

type GetSetter

type GetSetter interface {
	Set(key, val string) error
	Get(key string) (string, error)
}

GetSetter implements get a set of a key value pair

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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