Skip to main content

G#

A Go-inspired language for the .NET runtime

G# blends Go's clarity — packages, func, goroutines, channels and defer — with the .NET runtime and its libraries. Source compiles directly to managed assemblies.

hello.gs
package Hello

import System

func greet(name string) string {
return "Hello, ${name}!"
}

Console.WriteLine(greet("world"))