From 0b1fbb54232aa661521855aeb3990e5b9cbad3d8 Mon Sep 17 00:00:00 2001 From: bvanvugt <1531419+bvanvugt@users.noreply.github.com> Date: Sun, 19 Feb 2023 17:17:59 +0000 Subject: [PATCH] Gofmt. --- cli/commands/colors.go | 2 +- constrictor_test.go | 4 ++-- maps/game_map.go | 2 +- pipeline.go | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cli/commands/colors.go b/cli/commands/colors.go index 0eb1e53..a3a2ec0 100644 --- a/cli/commands/colors.go +++ b/cli/commands/colors.go @@ -1,6 +1,6 @@ package commands -//ANSI escape codes to be used in the color output of the board view +// ANSI escape codes to be used in the color output of the board view const ( TERM_RESET = "\033[0m" diff --git a/constrictor_test.go b/constrictor_test.go index 722a408..cc847b5 100644 --- a/constrictor_test.go +++ b/constrictor_test.go @@ -6,8 +6,8 @@ import ( // Test that two equal snakes collide and both get eliminated // also checks: -// - food removed -// - health back to max +// - food removed +// - health back to max var constrictorMoveAndCollideMAD = gameTestCase{ "Constrictor Case Move and Collide", &BoardState{ diff --git a/maps/game_map.go b/maps/game_map.go index 5990b5e..c3f2b78 100644 --- a/maps/game_map.go +++ b/maps/game_map.go @@ -123,7 +123,7 @@ func AnySize() sizes { // OddSizes generates square (width = height) board sizes with an odd number of positions // in the vertical and horizontal directions. // Examples: -// - OddSizes(11,21) produces [(11,11), (13,13), (15,15), (17,17), (19,19), (21,21)] +// - OddSizes(11,21) produces [(11,11), (13,13), (15,15), (17,17), (19,19), (21,21)] func OddSizes(min, max int) sizes { var s sizes for i := min; i <= max; i += 2 { diff --git a/pipeline.go b/pipeline.go index 9e3be27..8a88c38 100644 --- a/pipeline.go +++ b/pipeline.go @@ -133,7 +133,9 @@ func NewPipeline(stageNames ...string) Pipeline { // the stage names are provided. // // Example: -// NewPipelineFromRegistry(r, s, "stage1", "stage2") +// +// NewPipelineFromRegistry(r, s, "stage1", "stage2") +// // ... will result in stage "stage1" running first, then stage "stage2" running after. // // An error will be returned if an unregistered stage name is used (a name that is not