1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

fix cgo code snippet, go version 1.13.3

This commit is contained in:
kumakichi 2019-10-30 16:03:44 +08:00
parent 7b59a3ceba
commit 4cb264d85a

View File

@ -123,9 +123,9 @@ package main
#if defined(CGO_OS_WINDOWS)
const char* os = "windows";
#elif defined(CGO_OS_DARWIN)
static const char* os = "darwin";
const char* os = "darwin";
#elif defined(CGO_OS_LINUX)
static const char* os = "linux";
const char* os = "linux";
#else
# error(unknown os)
#endif