From 9ba60916fb72051efc5c36209dc04ff6af7b58bd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 16 Feb 2016 00:35:28 +0900 Subject: [PATCH] doc: Use 'go generate' again --- _docs/README.md | 4 ++-- _docs/generate.go | 2 -- _docs/{server.go => server/main.go} | 0 3 files changed, 2 insertions(+), 4 deletions(-) rename _docs/{server.go => server/main.go} (100%) diff --git a/_docs/README.md b/_docs/README.md index e50068c6c..8b97c5076 100644 --- a/_docs/README.md +++ b/_docs/README.md @@ -1,10 +1,10 @@ # How to generate the doc -`go run gen.go` +`go generate .` # How to run HTTP server -`go run server.go` +`go run server/main.go` # How to deploy diff --git a/_docs/generate.go b/_docs/generate.go index 4c7ca0df6..53931bcb2 100644 --- a/_docs/generate.go +++ b/_docs/generate.go @@ -14,7 +14,5 @@ package docs -// TODO: Remove this file and add copying to gen.go - //go:generate go run gen.go //go:generate cp -r ../examples/images ./public/examples/ diff --git a/_docs/server.go b/_docs/server/main.go similarity index 100% rename from _docs/server.go rename to _docs/server/main.go