contentcode

command
v0.5.44 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: BSD-3-Clause Imports: 3 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

Command contentcode compiles the runnable Go and Goal code blocks (```Go, ```Goal) of the markdown files of a content app into the app (see cogentcore.org/core/content/contentcode).

The core tool already does this for every content app in core build, run, install, pack and generate; this command is for running it from go generate instead, with a directive in the app's main package:

//go:generate go run cogentcore.org/core/content/cmd/contentcode

The core tool then uses the arguments of the directive.

Usage:

contentcode [-content content] [-o contentcode_gen.go] [-tags tags] [-import name=path]... [-goal-record=false] [-force]

Jump to

Keyboard shortcuts

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