https://github.com/aacfactory/fnc
fns generators
https://github.com/aacfactory/fnc
Last synced: 5 months ago
JSON representation
fns generators
- Host: GitHub
- URL: https://github.com/aacfactory/fnc
- Owner: aacfactory
- License: apache-2.0
- Created: 2021-07-19T11:14:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-27T07:41:30.000Z (about 3 years ago)
- Last Synced: 2024-06-21T09:51:15.363Z (almost 2 years ago)
- Language: Go
- Size: 225 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FNC
fns codes generator
## Install
### Download
See [releases](https://github.com/aacfactory/fnc/releases)
### Build from source
```bash
go install github.com/aacfactory/fnc@latest
```
## Usage
### Create project
```bash
cd {your project dir}
fnc create -p {project mod path} .
```
### Generate codes
mark `go:generate`
```go
// main
// go:generate fnc codes .
func main() {
}
```
run generate
```bash
go generate
```