Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

goexec

> 编程语言
Open source

A command line tool to execute Go functions.

396 stars0 likes1 views
WebsiteGitHub

About

A command line tool to execute Go functions.

goexec

goexec is a command line tool to execute Go code. Output is printed as goons to stdout.

Installation

bash
go install github.com/shurcooL/goexec@latest

Usage

Usage: goexec [flags] [packages] [package.]function(parameters)
       echo parameters | goexec -stdin [flags] [packages] [package.]function
  -compiler string
    	Compiler to use, one of: "gc", "gopherjs". (default "gc")
  -n	Print the generated source but do not run it.
  -quiet
    	Do not dump the return values as a goon.
  -stdin
    	Read func parameters from stdin instead.
  -tags string
    	A comma-separated list of build tags to consider satisfied during the build.

Examples

…

Alternatives

  • gommand - Go one liner program, similar to python -c.
  • gorram - Like go run for any Go function.
  • goeval - Run Go snippets instantly from the command-line.

License

  • MIT License

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gogo

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言