RSSAmplifier

Artem Krylysov · Apr 13, 2017

Handling C++ exceptions in Go

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Cgo is a mechanism that allows Go packages call C code. The Go compiler enables cgo for every .go source file that imports a special pseudo package "C" . The text in the comment before the import "C" line is treated as a C code. You can include headers, define functions, types and variables - everything a normal C code can do: package main /* #include <stdio.h> void foo(int x) { printf("x: %d\n",…

Read on artem.krylysov.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.