github.com/go-openapi/swag

swag

Package swag contains a bunch of helper functions for go-openapi and go-swagger projects.

94

Decision Signals

Health score 94/100, confidence 95/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 93
Developer DX 83
Confidence 95

Install

go get github.com/go-openapi/swag

Package Data

updated Jun 11, 2026
Latest versionv0.26.1
Imported by16.2K packages
Stars221
Forks52
Last activity3 days ago
Latest releasev0.26.1 (3 days ago)
LicenseApache-2.0
Known vuln records0

API Surface

140 symbols
SymbolKindSynopsis
CommandLineOptionsGroup Type type CommandLineOptionsGroup = cmdutils.CommandLineOptionsGroup
File Type type File = fileutils.File
JSONMapItem Type type JSONMapItem = jsonutils.JSONMapItem
JSONMapSlice Type type JSONMapSlice = jsonutils.JSONMapSlice
NameProvider Type type NameProvider = jsonname.NameProvider
NewNameProvider Function func NewNameProvider() *NameProvider
AddInitialisms Function func AddInitialisms(words ...string)
Bool Function func Bool(v bool) *bool
BoolMap Function func BoolMap(src map[string]bool) map[string]*bool
BoolSlice Function func BoolSlice(src []bool) []*bool
BoolValue Function func BoolValue(v *bool) bool
BoolValueMap Function func BoolValueMap(src map[string]*bool) map[string]bool

Similar Packages

Go OpenAPI Libraries

#1 validate

Package validate provides methods to validate a swagger specification, as well as tools to validate data against their schema.

Go OpenAPI Libraries 144 stars 0 imported-by 75% confidence
76

#2 go-redoc

Embedded OpenAPI/Swagger documentation ui for Go using [ReDoc](https://redocly.com/).

Go OpenAPI Libraries 94 stars 39 imported-by 100% confidence
74

#3 go-redoc

go-redoc is an embedded OpenAPI/Swagger documentation ui for Go using ReDoc

Go OpenAPI Libraries 0 stars 1 imported-by 95% confidence
51