after_decl_comments

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package after_decl_comments witnesses the AfterDeclComments opt-in: swagger annotations live INSIDE a declaration (a struct's leading body comment) or INLINED as a trailing comment, so the godoc above the declaration stays clean. With the option off, those annotations are inert (nothing discovered).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListWidgets

func ListWidgets()

ListWidgets is an ordinary Go handler with a clean godoc.

Types

type Count

type Count int // swagger:model countType

Count is a plain count. Clean godoc above; annotation inlined below.

type Stamp

type Stamp = string // swagger:model stampType

Stamp is a string alias. Clean godoc above; annotation inlined trailing.

type Widget

type Widget struct {
	Name string `json:"name"`

	// Created is documented with a clean godoc; the format annotation is
	// inlined as a trailing comment (Phase B).
	Created string `json:"created"` // swagger:strfmt date
}

Widget is a widget. This godoc stays clean — no swagger machinery here.

Jump to

Keyboard shortcuts

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