Skip to content

Instantly share code, notes, and snippets.

/**
* @param { Function } reducer
* @param { Object } initialState
* @returns { Store } State
*/
function createPubSub() {
let messages = {};
/**
* Publish publishes messages
package main
import (
"fmt"
"strings"
)
type mapDiff struct {
a string
b string