mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-06-17 14:45:06 +03:00
Move to contrib
, separate mobile build script
This commit is contained in:
parent
71b9409c44
commit
8f1b550030
7 changed files with 60 additions and 26 deletions
12
contrib/mobile/mobile_android.go
Normal file
12
contrib/mobile/mobile_android.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
// +build android
|
||||
|
||||
package mobile
|
||||
|
||||
import "log"
|
||||
|
||||
type MobileLogger struct{}
|
||||
|
||||
func (nsl MobileLogger) Write(p []byte) (n int, err error) {
|
||||
log.Println(string(p))
|
||||
return len(p), nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue