README.md finalized.
This commit is contained in:
parent
4a628ccc7e
commit
b942c67d8e
1 changed files with 7 additions and 1 deletions
|
@ -23,8 +23,14 @@ import (
|
||||||
```
|
```
|
||||||
3. In the main package add a go:generate directive:
|
3. In the main package add a go:generate directive:
|
||||||
```go
|
```go
|
||||||
//go:generate go run code.foilhatguy.casa/pub/help
|
//go:generate go run code.foilhatguy.casa/pub/help HELP.md
|
||||||
```
|
```
|
||||||
|
The last part in this directive is a name of help file for
|
||||||
|
your application. It should be placed in the root directory
|
||||||
|
of your project along with **main.go** file. The help file
|
||||||
|
can be written ether in the MarkDown format, or in plain text.
|
||||||
|
MarkDown will be automatically converted in to plain text,
|
||||||
|
which is suitable for the console output.
|
||||||
4. Run code generator by **go generate** command:
|
4. Run code generator by **go generate** command:
|
||||||
```shell
|
```shell
|
||||||
go generate ./...
|
go generate ./...
|
||||||
|
|
Loading…
Add table
Reference in a new issue