cgot

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cgot is a helper for testing the target C-code. Each C function gets a Go wrapper which is tested in appropriate test functions. For some reason inside the trice_test.go an 'import "C"' is not possible. The C-files referring to the trice sources this way avoiding code duplication. The Go functions defined here are not exported. They are called by the Go test functions in this package. This way the test functions are executing the trice C-code compiled with the triceConfig.h here. Inside ./testdata this file is named cgoPackage.go where it is maintained. The ../renewIDs_in_examples_and_test_folder.sh script copies this file under the name generated_cgoPackage.go into various package folders, where it is used separately.

Jump to

Keyboard shortcuts

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