csharp

package
v0.0.0-...-e1dab53 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package csharp implements compile checking for C#.code samples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

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

Check sets up the C# compile check, satisfying checked.Func. It wraps each snippet into its own namespace, allowing them all to compile within the sample library. A Docker image is created with: * mono, which is a .NET runtime and C# compiler. * The dotnet CLI, which is a package manager and C# build system. * All the namespace-wrapped snippet source files. The Docker image is built and executed, which returns the build status as a standard exit code from docker.

func Init

func Init(force bool) (string, error)

Init performs the C#-specific, language-independent initialization. This involves setting up a Docker image (`languageImageName`) and running as much of its set-up as possible. The actual checks will fork off this image to test specific APIs. If `force` is set, the image will be created from scratch unconditionally; otherwise, `languageImageName` will be created only if it doesn't already exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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