# go: Add runnables \(\#12110\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8168ec2a2801369863937cd797450520bb65e6cc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8168ec2a2801369863937cd797450520bb65e6cc

Requested commit: 8168ec2a2801369863937cd797450520bb65e6cc

Commit: 8168ec2a2801369863937cd797450520bb65e6cc

Tree: 9ffa3be43510e20898c47d8bd286a196de188de9

Author: Thorsten Ball

Committer: GitHub

## Message

```
go: Add runnables (#12110)

This adds support for runnables to Go.

It adds the following tasks:

- `go test $ZED_GO_PACKAGE -run $ZED_SYMBOL`
- `go test $ZED_GO_PACKAGE`
- `go test ./...`
- `go run $ZED_GO_PACKAGE` if it has a `main` function

Release Notes:

- Added built-in Go runnables and tasks that allow users to run Go test
functions, test packages, or run `main` functions.

Demo:



https://github.com/zed-industries/zed/assets/1185253/a6271d80-faf4-466a-bf63-efbec8fe6c35




https://github.com/zed-industries/zed/assets/1185253/92f2b616-7501-463d-b613-1ec1084ae0cd
```

## Parents

- [e5b9e2044eadaa55a2e2d8bdb658441a4630ff6f](https://git.cafe/gitcafe/zed/commit/e5b9e2044eadaa55a2e2d8bdb658441a4630ff6f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8168ec2a2801369863937cd797450520bb65e6cc?format=markdown)
