am I understanding right - for program artifact `m...
# kotlin-native
t
am I understanding right - for program artifact
main.kt
should be always in
src/main/kotlin
and not in
src/main/kotlin/some/package
?
i
By default yes, the
main
function should be in the root package. But you may specify a custom
main
function using
entryPoint
method in gradle:
Copy code
program('Foo') {
    entryPoint 'foo.bar.main'
}
or
-e
flag in command line:
Copy code
konanc  -e foo.bar.main src
👍 2