Skip to main content

G#

A modern .NET language with Go, Kotlin, and Swift ergonomics

G# brings Go-, Kotlin-, and Swift-style ergonomics — packages, func, data class, nullable handling with if let, structured concurrency with scope — to the .NET runtime. Source compiles directly to managed assemblies.

hello.gs
package Hello

import System

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

Console.WriteLine(greet("world"))