templates

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 3 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 templates は組み込みのプリセットと雛形を提供する。

プリセットは「どんな文書をどう連ねるか」を 1 組にしたもので、 連鎖・ファイル構成・ID パターンを preset.yaml が、各文書の書き出しを 同じディレクトリの Markdown が受け持つ。設定生成はこの宣言だけを見るので、 構成の定義が Go コードと二重になることがない。

Index

Constants

View Source
const GlossaryName = "glossary"

GlossaryName は全プリセット共通の用語集の雛形の実体名。

利用側(pkg/scaffold)が、設定の用語集型名(rules.term_consistency.glossary_type、 ARC-8)とこの実体名を読み替える。この値そのものは常に "glossary" で変わらない。

Variables

This section is empty.

Functions

func Get

func Get(preset, name string) (string, bool)

Get はプリセットの文書タイプに対応する雛形の本文を返す。 用語集はプリセットに依らないので、どのプリセットからも同じものを返す。

func Names

func Names(preset string) []string

Names はプリセットが持つ雛形名の一覧を返す(用語集を含む)。

func Preset

func Preset(name string) ([]byte, bool)

Preset はプリセットの構成宣言(preset.yaml)を返す。

func Presets

func Presets() []string

Presets は組み込みプリセット名の一覧を返す。

Types

This section is empty.

Jump to

Keyboard shortcuts

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