github.com/coming-chat/gomobile@v0.0.0-20220601074111-56995f7d7aba/app/internal/callfn/callfn.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build android && (arm || 386 || amd64 || arm64) 6 // +build android 7 // +build arm 386 amd64 arm64 8 9 // Package callfn provides an android entry point. 10 // 11 // It is a separate package from app because it contains Go assembly, 12 // which does not compile in a package using cgo. 13 package callfn 14 15 // CallFn calls a zero-argument function by its program counter. 16 // It is only intended for calling main.main. Using it for 17 // anything else will not end well. 18 func CallFn(fn uintptr)