Files
openchamber-android-native/netcfg/swift/Netcfg.swift
T

10 lines
355 B
Swift
Raw Normal View History

// The netcfg package's Swift: what its Go declares, implemented on iOS
// and macOS (Netcfg.asuka.swift, beside it, is what asuka native generates).
import Asuka
import Foundation
final class SwiftNetcfg: Netcfg {
func hello(name: String) throws -> String { "Hello, \(name), from Swift" }
}
func makeNetcfg() throws -> any Netcfg { SwiftNetcfg() }