Skip to content

Hello World

Terminal window
mkdir ngn && cd ngn

Create a file named main.ngn with the following:

fn main() {
print("Hello, ngn!")
}

Your entrypoint file’s name does not have to be main.ngn

Terminal window
ngn run main.ngn

You should see:

Hello, ngn!