GoRay

Go bindings for Ray Core.

API Documentation

Features

  • Pure Go — Build Ray applications in Go without touching Python
  • Seamless Polyglot — Hybrid Python–Go development with cross-language Task/Actor invocation
  • Strong compatibility — Clean implementation with zero hacks
  • Type-safe Remote Calls — Compile-time safety and full IDE support via code generation

Quick Start

Init a go project:

mkdir goray-app && cd goray-app
go mod init rayapp

Add a main.go file:

package main

import (
"fmt"
"github.com/ray4go/go-ray/ray"
)

type Tasks struct{}

func (Tasks) Square(x float64) float64 {
return x * x
}

func driver() int {
obj := ray.RemoteCall("Square", 2.0)
res, err := ray.Get1[float64](ob...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help