Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GoでGemを作っています

enta0701
October 24, 2017

 GoでGemを作っています

LT資料

enta0701

October 24, 2017
Tweet

More Decks by enta0701

Other Decks in Technology

Transcript

  1. ''*Ͱ(PΛ࢖͏४උ 3VCZ͔Β''*ͰಡΈࠐΉͨΊʹ4IBSFE0CKFDUԽ package main import ( "C" ) func main()

    {} //export test func test() *C.char { return C.CString("test!!!") } ᶃ$ΛಡΈࠐΉ ᶄؔ਺໊Λࢦఆ
  2. ''*Ͱ(PΛ࢖͏४උ Ϗϧυ $ go build -buildmode=c-shared -o test.so main.go 㱺

    test.h test.so ͋ͱ͸ɺUFTUTPΛ3VCZଆͰݺΜͰ͋͛Ε͹0,