Help us shape the future of Go! Take the 2026 Go Developer Survey

md

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package md は CLI が出す Markdown の部品。summary と analysis の表・数値の書き方を揃える。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Change

func Change(before, after float64) string

Change は before → after の変化率。before が 0 なら空。

func Clip

func Clip(s string, n int) string

Clip は s を n バイト以内に切り詰める。途中で切れた最後の文字は落とす。

func Int

func Int(n int) string

func Num

func Num(v float64) string

Num は件数や系列の値。整数ならそのまま、そうでなければ小数2桁。

func Pct

func Pct(v float64) string

Pct は 0〜1 の割合を百分率にする。

func Row

func Row(w io.Writer, cells []string)

Row は表の1行を書く。セルの中の | と改行は、表が崩れないように潰す。

func Sec

func Sec(v float64) string

Sec は秒。ミリ秒まで出す。

func Sep

func Sep(w io.Writer, n int)

Sep は見出し行の下の区切りを書く。

func Signed

func Signed(v float64, f func(float64) string) string

Signed は f で書いた値の前に、正なら + を付ける。

func Warnings

func Warnings(w io.Writer, warnings []string)

Warnings は集計の前提が崩れていること(収集中・失敗など)を見出しの下に並べる。

Types

This section is empty.

Jump to

Keyboard shortcuts

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