cgo - The Go Programming Language

... #lowframe Documents Packages The Project Help Blog Play The Go Programming Language package main import "fmt" func main() { fmt.Println("Hello, 世界") } Run Format Share Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Note: Static (i.e., not template-generated) href and id attributes start with "pkg-" to make it impossible for them to conflict with generated attributes (some of which correspond to Go identifiers). Cgo enables the creation of Go packages that call C code. To use cgo write normal Go code that imports a pseudo-package "C". The Go code can then refer to types such as C.size_t, variables such as C.stdout, or functions such as C.putchar. If the import of "C" is immediately preceded by a comment, that comment, called the preamble,...

Linked on 2015-03-15 07:58:02 | Similar Links