golang

package
v0.0.0-...-6d13ae5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package golang implements compile checking for Go code samples.

The name slightly deviates from the norm: while the Java compile checking is in the package "java", we cannot name this package "go", since it is a reserved keyword.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(files []string, libDir, tstDir string) (string, error)

Check sets up the Go compile check, satisfying checker.Func. It copies each snipppet into its own package changing the package name from "main" to "sample". Separating the packages prevents names in the snnipets from colliding, and renaming the packages prevents "go build" from linking all the files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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