Kotlin hello world for Cloudflare Workers
Your Kotlin code in main.kt, running on Cloudflare Workers
To generate using wrangler
wrangler generate projectname https://github.com/cloudflare/kotlin-worker-hello-world
Further documentation for Wrangler can be found here.
After setting up Kotlin per the linked instructions above,
cd projectname ./gradlew buildWorker
That will compile your code and package it into index.js, after which you can run
wrangler publish to push it to Cloudflare.