From cb6caf6d89eb349af54992802be5121ce661c101 Mon Sep 17 00:00:00 2001 From: Ovidiu-Florin Bogdan Date: Thu, 29 Mar 2018 08:47:04 +0300 Subject: [PATCH] Change package name so godoc generates docs --- for/readme.md | 4 ++-- for/v1/repeat.go | 2 +- for/v1/repeat_test.go | 2 +- for/v2/repeat.go | 2 +- for/v2/repeat_test.go | 2 +- for/vx/repeat.go | 2 +- for/vx/repeat_test.go | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/for/readme.md b/for/readme.md index ef73cdb2d..6b23302b9 100644 --- a/for/readme.md +++ b/for/readme.md @@ -9,7 +9,7 @@ There's nothing new so far, so try and write it yourself for practice. ## Write the test first ```go -package main +package iteration import "testing" @@ -34,7 +34,7 @@ _Keep the discipline!_ You don't need to know anything new right now to make the All you need to do right now is enough to make it compile so you can check your test is written well. ```go -package main +package iteration func Repeat(character string) string { return "" diff --git a/for/v1/repeat.go b/for/v1/repeat.go index d94988bed..531bfdd7c 100644 --- a/for/v1/repeat.go +++ b/for/v1/repeat.go @@ -1,4 +1,4 @@ -package main +package iteration func Repeat(character string) string { var repeated string diff --git a/for/v1/repeat_test.go b/for/v1/repeat_test.go index 44af9e5a8..4e2db6df3 100644 --- a/for/v1/repeat_test.go +++ b/for/v1/repeat_test.go @@ -1,4 +1,4 @@ -package main +package iteration import "testing" diff --git a/for/v2/repeat.go b/for/v2/repeat.go index f6e5364b9..5924e7f7a 100644 --- a/for/v2/repeat.go +++ b/for/v2/repeat.go @@ -1,4 +1,4 @@ -package main +package iteration const repeatCount = 5 diff --git a/for/v2/repeat_test.go b/for/v2/repeat_test.go index 44af9e5a8..4e2db6df3 100644 --- a/for/v2/repeat_test.go +++ b/for/v2/repeat_test.go @@ -1,4 +1,4 @@ -package main +package iteration import "testing" diff --git a/for/vx/repeat.go b/for/vx/repeat.go index f6e5364b9..5924e7f7a 100644 --- a/for/vx/repeat.go +++ b/for/vx/repeat.go @@ -1,4 +1,4 @@ -package main +package iteration const repeatCount = 5 diff --git a/for/vx/repeat_test.go b/for/vx/repeat_test.go index b69141911..f18a777e7 100644 --- a/for/vx/repeat_test.go +++ b/for/vx/repeat_test.go @@ -1,4 +1,4 @@ -package main +package iteration import "testing"