Wire project infrastructure

This commit is contained in:
2026-04-24 15:27:17 +02:00
parent 4b838cfb99
commit 6684b7179d
66 changed files with 7276 additions and 211 deletions

View File

@@ -1,3 +1,3 @@
package dev.ulfrx.recipe
const val SERVER_PORT = 8080
public const val SERVER_PORT: Int = 8080

View File

@@ -1,9 +1,7 @@
package dev.ulfrx.recipe
class Greeting {
public class Greeting {
private val platform = getPlatform()
fun greet(): String {
return "Hello, ${platform.name}!"
}
}
public fun greet(): String = "Hello, ${platform.name}!"
}

View File

@@ -1,7 +1,7 @@
package dev.ulfrx.recipe
interface Platform {
val name: String
public interface Platform {
public val name: String
}
expect fun getPlatform(): Platform
public expect fun getPlatform(): Platform