Skip to content

Commit

Permalink
Go fmted the project
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrm committed Oct 4, 2017
1 parent d14a153 commit f5f2574
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions kill_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package main
import "os/exec"

func killWithMessage(message string) {
println(message)
exec.Command("pkill", "-9", "presento").Output()
}
println(message)
exec.Command("pkill", "-9", "presento").Output()
}
6 changes: 3 additions & 3 deletions kill_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package main
import "os/exec"

func killWithMessage(message string) {
println(message)
exec.Command("pkill", "-9", "presento").Output()
}
println(message)
exec.Command("pkill", "-9", "presento").Output()
}
4 changes: 2 additions & 2 deletions kill_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package main
import "os/exec"

func killWithMessage(message string) {
println(message)
}
println(message)
}
10 changes: 5 additions & 5 deletions utils.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package main

import (
"github.com/kardianos/osext"
"github.com/russross/blackfriday"
"io/ioutil"
"math/rand"
"net"
"path"
"time"
"path"
"github.com/kardianos/osext"
)

func generateRandomKey(length int) string {
Expand All @@ -24,7 +24,7 @@ func generateRandomKey(length int) string {
}

func readMdFileToHtml(filename string) []byte {
normalizedRelativePath := normalizeRelativePath(filename)
normalizedRelativePath := normalizeRelativePath(filename)

if bytes, err := ioutil.ReadFile(normalizedRelativePath); err == nil {
return blackfriday.MarkdownBasic(bytes)
Expand All @@ -34,9 +34,9 @@ func readMdFileToHtml(filename string) []byte {
}

func normalizeRelativePath(relativePath string) string {
filename, _ := osext.Executable()
filename, _ := osext.Executable()

return path.Join(path.Dir(filename), relativePath)
return path.Join(path.Dir(filename), relativePath)
}

func findLocalIpAddress() string {
Expand Down

0 comments on commit f5f2574

Please sign in to comment.