// Test project main.go package main /* int hello(int a,int b) { return a+b; } */ import "C" import ( "fmt" "io" "net/http" "os" ) func main() { // conn, err := net.Dial("tcp", "127.0.0.1:1234") // conn.Close() htt, _ := http.Get("http://www.baidu.com") io.Copy(os.Stdout, htt.Body) fmt.Println("End") fmt.Println(C.hello(100, 234)) }