INNER CODE UNIT · Go
Start
topfreegames/pitaya · repl/main.go:41
func Start(docs, filename string, prettyJSON bool) {
docsString = docs
fileName = filename
prettyJSON = prettyJSON
handshake = &session.HandshakeData{
Sys: session.HandshakeClientData{
Platform: "repl",
LibVersion: "0.3.5-release",
BuildNumber: "20",
Version: "1.0.0",
},
User: map[string]interface{}{
"client": "repl",
},
}
switch {
case fileName != "":