Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vlang/go2v

Go => V source code translator
https://github.com/vlang/go2v

Last synced: 7 days ago
JSON representation

Go => V source code translator

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`.