mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 07:43:42 +08:00
15 lines
198 B
Go
15 lines
198 B
Go
package main
|
|
|
|
type RustCallGo struct{}
|
|
|
|
func (r RustCallGo) ping(ping string) string {
|
|
if ping == "PING" {
|
|
return "PONG"
|
|
}
|
|
panic("invalid ping")
|
|
}
|
|
|
|
func init() {
|
|
RsCallGoImpl = RustCallGo{}
|
|
}
|