https://github.com/vlang/go2v
Go => V source code translator
https://github.com/vlang/go2v
Last synced: over 1 year ago
JSON representation
Go => V source code translator
- Host: GitHub
- URL: https://github.com/vlang/go2v
- Owner: vlang
- License: gpl-2.0
- Created: 2021-07-09T04:57:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T20:10:26.000Z (over 1 year ago)
- Last Synced: 2025-03-28T10:08:49.910Z (over 1 year ago)
- Language: Go
- Size: 1 MB
- Stars: 186
- Watchers: 28
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Go2V
Uses JSON Go AST generated by go/parser.
Early stage.
## Requirements:
Go v1.20 or later - make sure `go/bin` is in your path.
The latest version of [asty](https://github.com/asty-org/asty), but
the code will install it for you the first time you run `go2v`, _if_
it can find `go` in your path.
## Testing
To run the existing tests, do `v test .`
To attempt a new test, specify the path to the directory as well as
the name of the test:
```bash
v .
./go2v untested/block
```
When a test passes, move it from `untested` to `tests`.