Skip to content

Instantly share code, notes, and snippets.

@mahozad
Last active November 30, 2021 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahozad/1365dc10297969dad2d01fca17b02f12 to your computer and use it in GitHub Desktop.
Save mahozad/1365dc10297969dad2d01fca17b02f12 to your computer and use it in GitHub Desktop.
Kotlin script hello world example. Can be run from the command line with `kotlin hello.main.kts` command. Ensure Kotlin compiler is installed on your machine and is added to the PATH. You can also run the script with `hello.main.kts` command on Linux given Kotlin is available in /usr/bin/env/.
#!/usr/bin/env kotlin
println("Hello World!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment