usecgo

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package usecgo is used for testing. It contains a C function and a Go function which calls it via cgo, and some functions which call type conversion functions from the "C" pseudo-package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallCBytes

func CallCBytes([]byte)

CallCBytes is a test function that calls C.CBytes.

func CallCString

func CallCString()

CallCString is a test function that calls C.CString.

func CallGoBytes

func CallGoBytes(unsafe.Pointer, C.int)

CallGoBytes is a test function that calls C.GoBytes.

func CallGoString

func CallGoString(*C.char)

CallGoString is a test function that calls C.GoString.

func CallGoStringN

func CallGoStringN(*C.char, C.int)

CallGoStringN is a test function that calls C.GoStringN.

func Foo

func Foo() int

Foo calls a C function using cgo.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL