package
0.0.0-20240511072453-5331bcacd4bd
Repository: https://github.com/japanese-document/mujidoc.git
Documentation: pkg.go.dev
# Packages
Package mock_utils is a generated GoMock package.
# Functions
CopyDir copies a directory from src to dist.
CreateCategoryOrders takes a string of categories separated by commas, trims any trailing comma, and then splits the string into individual categories.
CreateDescription generates a description from an HTML string.
CreateHash generates a hash value from the given text.
CreateHeaderList generates HTML for a header list from markdown text.
CreateHTML generates an HTML page using the given parameters.
CreateHTMLFileDir constructs the file path for an HTML file based on the given directory, source directory, and output directory.
CreateIndexItems generates a slice of IndexItem from a slice of Pages.
CreateIndexMenu generates an HTML navigation menu from a slice of IndexItem.
CreateIndexPage generates the HTML for an index page from index items.
CreatePage generates the HTML for an individual page using the given parameters.
CreatePageData generates page data from a markdown file name.
CreatePages asynchronously generates a slice of Page data from multiple markdown files.
No description provided by the author
CreateTitle generates a title from the markdown text.
CreateURL generates a URL from the specified directory and file name.
Filter applies a callback function to each item in a slice and returns a new slice containing only the items for which the callback returns true.
GetDirAndName extracts the directory path and file name (without extension) from a file path.
GetMarkDownFileNames searches the specified root directory and all of its subdirectories for files with the ".md" extension and returns a slice containing the paths of all markdown files found.
No description provided by the author
GetMetaAndMd extracts metadata and markdown text from the content of a markdown file.
ImageSize takes the path to an image file and returns the dimensions of the image.
IsHeader determines if a given text line is a markdown code.
IsDirExists checks if the directory at the given path exists.
IsHeader determines if a given text line is a markdown header.
Keys extracts the keys from a map and returns them as a slice.
Map applies a callback function to each item in a slice and returns a new slice of the results.
MapToSlice converts a map with integer keys to a slice.
NewMarkdown initializes a new goldmark.Markdown instance with custom rendering logic.
NewSortedLimitedArray creates and returns a new SortedLimitedArray with the specified limit and comparison function.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SortedLimitedArray represents a slice that maintains a limited number of elements in a sorted order.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author