aliasmodel

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package aliasmodel is the F9 regression lock (doc-site-quirks.md): a model-annotated Go type alias once sent the scanner into an infinite loop when built (default / RefAliases modes); TransparentAliases dissolved it before the looping path. The hang is gone on the current base — this fixture keeps it gone. A regression would resurface as a test timeout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	// Total is the invoice total.
	Total Price `json:"total"`
}

Invoice references the aliased Price, so the alias is reachable and built.

swagger:model

type Money

type Money struct {
	// Cents is the amount in cents.
	Cents int64 `json:"cents"`
	// Currency is the ISO currency code.
	Currency string `json:"currency"`
}

Money is the underlying first-class model.

swagger:model

type Price

type Price = Money

Price is a Go type alias of Money that itself carries the model annotation — the first-class-alias form that used to hang the build.

swagger:model

Jump to

Keyboard shortcuts

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