mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-14 17:53:05 +08:00
12 lines
367 B
Kotlin
12 lines
367 B
Kotlin
package experimental
|
|
|
|
import kotlinx.serialization.json.Json
|
|
import work.slhaf.partner.ctl.support.RegistryIndex
|
|
import work.slhaf.partner.ctl.support.fetchText
|
|
|
|
|
|
fun main() {
|
|
val str = fetchText("https://raw.githubusercontent.com/slhaf/Partner/refs/heads/master/registry/index.json")
|
|
val index = Json.decodeFromString<RegistryIndex>(str)
|
|
println(index)
|
|
} |