gofmt changes
This commit is contained in:
5
mage.go
5
mage.go
@ -5,12 +5,12 @@ package main
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/magefile/mage/mg"
|
||||||
|
"github.com/magefile/mage/sh"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/magefile/mage/sh"
|
|
||||||
"github.com/magefile/mage/mg"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// emoji related constants
|
// emoji related constants
|
||||||
@ -117,4 +117,3 @@ func BuildBeta() {
|
|||||||
mg.Deps(BuildEmoji)
|
mg.Deps(BuildEmoji)
|
||||||
sh.Run("go", "build", "-tags", "allcommands,showreactionscmd,emojiList")
|
sh.Run("go", "build", "-tags", "allcommands,showreactionscmd,emojiList")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
main.go
2
main.go
@ -245,7 +245,7 @@ func stringRemainder(aStr, bStr string) string {
|
|||||||
var long, short string
|
var long, short string
|
||||||
//figure out which string is longer
|
//figure out which string is longer
|
||||||
switch {
|
switch {
|
||||||
case len(aStr) < len (bStr):
|
case len(aStr) < len(bStr):
|
||||||
short = aStr
|
short = aStr
|
||||||
long = bStr
|
long = bStr
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user