2022-11-01ãã1ã¶æéã®è¨äºä¸è¦§
Goã®IP Routing Tableã®å®è£ ã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã¨ãããã ãããOSã®Routing Tableãæä½ããç³»ã®ã©ã¤ãã©ãªããããã *1ãããã§ã¯ãªãã¦ã¼ã¶ã¼å´ã³ã¼ãã§Routing Tableç¸å½ã®å®è£ ã»å¦çããããæã«ä½¿ããããªã©ã¤ãã©ãªãããã¨è¦å½ãããªãã£ãã®ã§ããâ¦
ä¾ãã°ä»¥ä¸ã®ãããªGoã®ã³ã¼ããæ¸ãã package main import "C" import ( "fmt" ) //export DoSomething func DoSomething(cstr *C.char) { fmt.Printf("Go: %s\n", C.GoString(cstr)) } func main() { } go build -buildmode c-shared -o libdosomething.sâ¦