counter

package
Version: v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package counter is an example using go-frp modeled after the Elm example found at: https://github.com/evancz/elm-architecture-tutorial/blob/master/examples/3/Counter.elm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Updater

func Updater(model Model) func(action Action) Model

Types

type Action

type Action func(Model) Model

type Model

type Model int

func Decrement

func Decrement(model Model) Model

func Increment

func Increment(model Model) Model

func Init

func Init(count int) Model

func (Model) String

func (m Model) String() string

func (Model) Update

func (m Model) Update(action Action) Model

func (Model) View

func (m Model) View(rootUpdateFunc interface{}, wrapFunc WrapFunc) h.HTML

type WrapFunc

type WrapFunc func(model Model) interface{}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL