CURRENT PATH:
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
link
/
internal
/
ld
/
testdata
/
issue32233
/
lib
/
KEMBALI
|
HOME
Upload File Local:
Upload
Upload via URL:
Download
Dir Baru
File Baru
Editing:
lib.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package lib /* #cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450 #cgo darwin LDFLAGS: -framework Foundation -framework AppKit #include "stdlib.h" int function(void); */ import "C" import "fmt" func DoC() { C.function() fmt.Println("called c function") }
SIMPAN
BATAL