bootstrap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 39 Imported by: 0 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 bootstrap is the composition root: it builds every concrete dependency and wires them together.

It may import anything under internal/. Nothing may import it except cmd/moodle — that rule is enforced by tests/arch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, build Build, args []string) int

Run assembles the application and executes it, returning the process exit code. It is the only entry point cmd/moodle needs.

Types

type Build

type Build struct {
	Version   string
	Commit    string
	BuildDate string
}

Build carries the version stamps injected at link time.

Jump to

Keyboard shortcuts

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