Browse Source

go fmt

pull/1/head
Sam 5 years ago
parent
commit
4f7655dfd6
  1. 11
      main.go

11
main.go

@ -12,21 +12,20 @@ import ( @@ -12,21 +12,20 @@ import (
)
// Configurable section
var downloadPath = "/tmp/"
var outputFormat = "┌──[$USER@$DEVICE] [$ID] [$DATE - $TIME]\n└╼ $MSG"
// 02 = Day, Jan = Month, 06 = Year
var dateFormat = "02Jan06"
// 15 = hours, 04 = minutes, 05 = seconds
var timeFormat = "15:04"
// End configurable section
var k = keybase.NewKeybase()
var channel keybase.Channel
var channels [] keybase.Channel
var channels []keybase.Channel
var stream = false
var lastMessage keybase.ChatAPI
@ -103,7 +102,7 @@ func sendChat(message string, g *gocui.Gui) { @@ -103,7 +102,7 @@ func sendChat(message string, g *gocui.Gui) {
chat := k.NewChat(channel)
_, err := chat.Send(message)
if err != nil {
printToView(g,"Feed",fmt.Sprintf("There was an error %+v", err))
printToView(g, "Feed", fmt.Sprintf("There was an error %+v", err))
}
}
func formatOutput(api keybase.ChatAPI) string {
@ -421,7 +420,7 @@ func handleInput(g *gocui.Gui) error { @@ -421,7 +420,7 @@ func handleInput(g *gocui.Gui) error {
if len(command) == 3 {
reactToMessageId(command[1], command[2])
} else {
printToView(g,"Feed","/r $messageId $desiredReaction")
printToView(g, "Feed", "/r $messageId $desiredReaction")
}
default:
if inputString[:1] == "+" {

Loading…
Cancel
Save