Request to use playground service

109 views
Skip to first unread message

蔡 静

unread,
Mar 23, 2025, 12:25:39 AMMar 23
hi Golang-dev,
I am requesting to use playground service in the about path of my Jekyll-built website https://autumndrunkenpomelo.io/about/, that renders a Go program to introduce the Chinese name of my startup company, thank to Golang-dev for sharing playground service, making the about path runnable would be more funny. 
Thank you!
Cai Jing

scott beeker

unread,
Mar 23, 2025, 2:24:15 AMMar 23
to 蔡 静, [email protected]

Go Playground 提供了一个端点 (https://go.dev/_/compile),它接受带有 Go 源代码的 POST 请求并返回输出。 您需要发送带有唯一用户代理的请求(按照其指南)并处理 CORS 限制。 设置代理服务器: 由于 CORS(跨源资源共享)限制,您无法直接从浏览器调用 Go Playground API。相反,请设置代理服务器来转发请求。 使用轻量级服务器(例如,使用 Cloudflare Workers、Vercel Functions 或简单的 Go 服务器)将请求中继到 https://go.dev/_/compile


--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/golang-dev/9E647832-B985-4B73-84E5-BBABA25EEE97%40hotmail.com.

Peter JIN

unread,
Mar 23, 2025, 3:37:29 AMMar 23
to scott beeker, 蔡 静, [email protected]
Reply all
Reply to author
Forward
0 new messages