fix(app): format using gofumpt
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c79f4e811b
commit
b28dae3bd0
@ -13,7 +13,6 @@ import (
|
|||||||
func TestNixFlake_GosrcVersionStringEquivalence(t *testing.T) {
|
func TestNixFlake_GosrcVersionStringEquivalence(t *testing.T) {
|
||||||
want := GetShortVersion()
|
want := GetShortVersion()
|
||||||
fData, err := os.ReadFile("../flake.nix")
|
fData, err := os.ReadFile("../flake.nix")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Failed to open flake.nix: %q", err)
|
t.Errorf("Failed to open flake.nix: %q", err)
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,10 @@ type project struct {
|
|||||||
license string
|
license string
|
||||||
}
|
}
|
||||||
|
|
||||||
var authorInfo = "Adam Mirre <a_mirre at utb dot cz>"
|
var (
|
||||||
var projectURL = "https://git.dotya.ml/wanderer/go-xkcdreader"
|
authorInfo = "Adam Mirre <a_mirre at utb dot cz>"
|
||||||
|
projectURL = "https://git.dotya.ml/wanderer/go-xkcdreader"
|
||||||
|
)
|
||||||
|
|
||||||
//go:embed assets/standard-license-header.txt
|
//go:embed assets/standard-license-header.txt
|
||||||
var l string
|
var l string
|
||||||
|
@ -137,7 +137,6 @@ func makeBrowseUI() *fyne.Container {
|
|||||||
// get img from filesystem, resize it and return as *canvas.Image.
|
// get img from filesystem, resize it and return as *canvas.Image.
|
||||||
func getImg(imgPath string) *canvas.Image {
|
func getImg(imgPath string) *canvas.Image {
|
||||||
_, err := os.Stat(imgPath)
|
_, err := os.Stat(imgPath)
|
||||||
|
|
||||||
// properly handle error, perhaps panic?...don't panic, I know..
|
// properly handle error, perhaps panic?...don't panic, I know..
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("failed to read file " + imgPath)
|
log.Println("failed to read file " + imgPath)
|
||||||
|
@ -30,7 +30,6 @@ func TestToolbar(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestTabs(t *testing.T) {
|
func TestTabs(t *testing.T) {
|
||||||
|
|
||||||
// wantTabsNum := 2
|
// wantTabsNum := 2
|
||||||
// gotTabs := makeTabs()
|
// gotTabs := makeTabs()
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user