1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-29 08:12:21 +00:00

Merge pull request #101 from itfanr/patch-1

Update ch2-01-hello-cgo.md
This commit is contained in:
chai2010 2018-06-19 17:59:21 +08:00 committed by GitHub
commit 431e073905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ func main() {
void SayHello(const char* s);
```
其中只有一个SayHello函数的声明。但是作为hello模块的用户来说就可以放心地使用SayHello函数无需关心函数的具体实现。而作为SayHello函数的实现者来说函数的实现只要满足头文件中函数的声明的规范即可。下面是SayHello函数的C语言实现对应hello.c文件
其中只有一个SayHello函数的声明。但是作为hello模块的用户来说就可以放心地使用SayHello函数无需关心函数的具体实现。而作为SayHello函数的实现者来说函数的实现只要满足头文件中函数的声明的规范即可。下面是SayHello函数的C语言实现对应hello.c文件
```c
// hello.c