Fanout-更容易得写并发代码

不用管理 grouting 和 channel 了。 以下为转发 golangtc.com 原文: 刚刚写了个包,觉得值得出来分享下: 文档: https://github.com/sunfmin/fanout 用来简化并发程序(goroutine, channel)的编写,

[leetcode]wordladderii

problem: https://oj.leetcode.com/problems/word-ladder-ii/ 代码:https://play.golang.org/p/qdmadQUcEC package main import ( "fmt" ) func main() { start := "hit" end := "cog" dict := []string{"hot", "dot", "dog", "lot", "log"} dict = append(dict, start, end) mapAdjacency :=