Commit 29f02e13 authored by Ma_124's avatar Ma_124

fixing formatting in godoc

parent 00a600ef
Pipeline #45981101 passed with stages
in 2 minutes and 1 second
......@@ -6,7 +6,8 @@ import (
"strings"
)
// * [<name>](<url>) - <desc>
// Parses the code according to this pattern:
// * [<name>](<url>) - <desc>
var IFFMarkdown = &InputFileFormat{parseSimpleBulletMarkdownLine}
func parseSimpleBulletMarkdownLine(out io.Writer, l string, outFF *OutputFileFormat, ctx *Ctx) {
......@@ -22,11 +23,13 @@ func parseSimpleBulletMarkdownLine(out io.Writer, l string, outFF *OutputFileFor
}
}
// Prints the code according to this pattern:
// | Name | Desc |
// |-----------------|--------|
// | [<name>](<url>) | <desc> |
var OFFSimpleMarkdown = &OutputFileFormat{writeLiteralMd, writeSimpleItemMd, nil, nil}
// Prints the code according to this pattern:
// | Stars | Forks | Issues | Last Commit | Name | Desc |
// |---------|---------|----------|---------------|-----------------|--------|
// | <stars> | <forks> | <issues> | <last commit> | [<name>](<url>) | <desc> |
......
......@@ -6,15 +6,16 @@ import (
"strings"
)
// <name>\t<url>\t<desc>
// "literal line
// 'literal without newline
// " continuation of previous line
// """
// block literal
// which spans over
// multiple lines
// """
// Parses the code according to this pattern:
// <name>\t<url>\t<desc>
// "literal line
// 'literal without newline
// " continuation of previous line
// """
// block literal
// which spans over
// multiple lines
// """
var IFFTabSep = &InputFileFormat{parseTabSepLine}
func parseTabSepLine(out io.Writer, l string, outFF *OutputFileFormat, ctx *Ctx) {
......@@ -56,13 +57,14 @@ func parseTabSepLine(out io.Writer, l string, outFF *OutputFileFormat, ctx *Ctx)
outFF.Item(out, lps[0], lps[1], lps[2], ctx)
}
// <name>\t<url>\t<desc>
// "literal line
// 'literal without newline
// " continuation of previous line
// "block literal
// "which spans over
// "multiple lines
// Prints the code according to this pattern:
// <name>\t<url>\t<desc>
// "literal line
// 'literal without newline
// " continuation of previous line
// "block literal
// "which spans over
// "multiple lines
var OFFTabSep = &OutputFileFormat{writeLiteralTabSep, writeItemTabSep, nil, nil}
func writeLiteralTabSep(out io.Writer, l string, ctx *Ctx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment