kommentaarzgo.at/kommentaar/srvhttp Index | Files

package srvhttp

import "zgo.at/kommentaar/srvhttp"

Package srvhttp contains HTTP handlers for serving Kommentaar documentation.

Index

Functions

func HTML

func HTML(args Args) http.HandlerFunc

HTML outputs as HTML documentation.

func JSON

func JSON(args Args) http.HandlerFunc

JSON outputs as OpenAPI2 JSON.

Set the "indented" query parameter to get formatted JSON.

Types

type Args

type Args struct {
	Packages []string // Packages to scan.
	Config   string   // Kommentaar config file.
	NoScan   bool     // Don't scan the paths, but instead load and output one of the *File.
	JSONFile string
	HTMLFile string
}

Args for the HTTP handlers.

Source Files

srvhttp.go

Version
v0.0.0-20230517222226-0b90222c1cce (latest)
Published
May 17, 2023
Platform
linux/amd64
Imports
10 packages
Last checked
3 days ago

Tools for package owners.