From e6ab2455da7058c1b9c2771a8c46b55280e1f218 Mon Sep 17 00:00:00 2001 From: chai2010 Date: Wed, 10 Jan 2018 14:09:43 +0800 Subject: [PATCH] =?UTF-8?q?ch2-06:=20=E4=B8=BB=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUMMARY.md | 2 +- ch2-cgo/ch2-06-static-shared-lib.md | 12 ++++++++++++ ...-go-get-friendly.md => ch2-xx-go-get-friendly.md} | 0 examples/ch2-06/hello-01/hello.go | 10 ---------- 4 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 ch2-cgo/ch2-06-static-shared-lib.md rename ch2-cgo/{ch2-06-go-get-friendly.md => ch2-xx-go-get-friendly.md} (100%) delete mode 100644 examples/ch2-06/hello-01/hello.go diff --git a/SUMMARY.md b/SUMMARY.md index b4cf6bc..6fe7f4c 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -15,7 +15,7 @@ * [2.3. CGO编程基础](ch2-cgo/ch2-03-basic.md) * [2.4. CGO内存模型](ch2-cgo/ch2-04-memory.md) * [2.5. C++类包装](ch2-cgo/ch2-05-class.md) - * [2.6. CGO包的组织(Doing)](ch2-cgo/ch2-06-go-get-friendly.md) + * [2.6. 动态库和静态库(Doing)](ch2-cgo/ch2-06-static-shared-lib.md) * [2.7. Go实现Python模块(TODO)](ch2-cgo/ch2-07-py-module.md) * [2.8. SWIG(TODO)](ch2-cgo/ch2-08-swig.md) * [2.9. 补充说明(TODO)](ch2-cgo/ch2-09-faq.md) diff --git a/ch2-cgo/ch2-06-static-shared-lib.md b/ch2-cgo/ch2-06-static-shared-lib.md new file mode 100644 index 0000000..0b8d71e --- /dev/null +++ b/ch2-cgo/ch2-06-static-shared-lib.md @@ -0,0 +1,12 @@ +# x.y. 静态库和动态库 + + diff --git a/ch2-cgo/ch2-06-go-get-friendly.md b/ch2-cgo/ch2-xx-go-get-friendly.md similarity index 100% rename from ch2-cgo/ch2-06-go-get-friendly.md rename to ch2-cgo/ch2-xx-go-get-friendly.md diff --git a/examples/ch2-06/hello-01/hello.go b/examples/ch2-06/hello-01/hello.go deleted file mode 100644 index 861084e..0000000 --- a/examples/ch2-06/hello-01/hello.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright © 2017 ChaiShushan . -// License: https://creativecommons.org/licenses/by-nc-sa/4.0/ - -package main - -import "C" - -func main() { - println("hello cgo") -}