Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/campoy/chat
/ functions
Functions
24 in github.com/campoy/chat
⨍
Functions
24
◇
Types & classes
4
↓ 3 callers
Function
copy
(a io.Writer, b io.Reader, errc chan<- error)
match.go:39
↓ 2 callers
Method
Close
()
socket.go:14
↓ 2 callers
Method
Shift
Shift removes the first word from the Prefix and appends the given word.
markov/markov.go:20
↓ 2 callers
Method
SpyOn
(r io.Reader)
markov/readwriter.go:15
↓ 2 callers
Method
String
String returns the Prefix as a string (for use as a map key).
markov/markov.go:15
↓ 2 callers
Function
chat
(a, b io.ReadWriteCloser)
match.go:25
↓ 2 callers
Function
match
(conn io.ReadWriteCloser)
match.go:12
↓ 1 callers
Method
Build
Build reads text from the provided Reader and parses it into prefixes and suffixes that are stored in Chain.
markov/markov.go:40
↓ 1 callers
Method
Generate
Generate returns a string of at most n words generated from Chain.
markov/markov.go:55
↓ 1 callers
Function
NewChain
NewChain returns a new Chain with prefixes of prefixLen words.
markov/markov.go:34
↓ 1 callers
Method
Write
(p []byte)
bot.go:24
↓ 1 callers
Function
fib
(c chan<- int)
examples/channels/main.go:20
↓ 1 callers
Function
newBot
()
bot.go:19
↓ 1 callers
Method
speak
()
bot.go:32
↓ 1 callers
Function
tcpListen
()
main.go:11
Method
Write
(p []byte)
markov/readwriter.go:9
Function
handler
(w http.ResponseWriter, r *http.Request)
main.go:35
Function
handler
(conn *websocket.Conn)
examples/websockets/main.go:16
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/web/main.go:14
Function
main
()
main.go:27
Function
main
()
examples/websockets/main.go:11
Function
main
()
examples/channels/main.go:9
Function
main
()
examples/web/main.go:9
Function
socketHandler
(conn *websocket.Conn)
socket.go:19