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.