MCPcopy Create free account

hub / github.com/campoy/chat / functions

Functions24 in github.com/campoy/chat

↓ 3 callersFunctioncopy
(a io.Writer, b io.Reader, errc chan<- error)
match.go:39
↓ 2 callersMethodClose
()
socket.go:14
↓ 2 callersMethodShift
Shift removes the first word from the Prefix and appends the given word.
markov/markov.go:20
↓ 2 callersMethodSpyOn
(r io.Reader)
markov/readwriter.go:15
↓ 2 callersMethodString
String returns the Prefix as a string (for use as a map key).
markov/markov.go:15
↓ 2 callersFunctionchat
(a, b io.ReadWriteCloser)
match.go:25
↓ 2 callersFunctionmatch
(conn io.ReadWriteCloser)
match.go:12
↓ 1 callersMethodBuild
Build reads text from the provided Reader and parses it into prefixes and suffixes that are stored in Chain.
markov/markov.go:40
↓ 1 callersMethodGenerate
Generate returns a string of at most n words generated from Chain.
markov/markov.go:55
↓ 1 callersFunctionNewChain
NewChain returns a new Chain with prefixes of prefixLen words.
markov/markov.go:34
↓ 1 callersMethodWrite
(p []byte)
bot.go:24
↓ 1 callersFunctionfib
(c chan<- int)
examples/channels/main.go:20
↓ 1 callersFunctionnewBot
()
bot.go:19
↓ 1 callersMethodspeak
()
bot.go:32
↓ 1 callersFunctiontcpListen
()
main.go:11
MethodWrite
(p []byte)
markov/readwriter.go:9
Functionhandler
(w http.ResponseWriter, r *http.Request)
main.go:35
Functionhandler
(conn *websocket.Conn)
examples/websockets/main.go:16
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/web/main.go:14
Functionmain
()
main.go:27
Functionmain
()
examples/websockets/main.go:11
Functionmain
()
examples/channels/main.go:9
Functionmain
()
examples/web/main.go:9
FunctionsocketHandler
(conn *websocket.Conn)
socket.go:19