github.com/go-openapi/swag

swag

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

78

Decision Signals

Health score 78/100, confidence 75/100.

Strong
Maintenance 83
Adoption 72
Security 92
Maturity 55
Developer DX 83
Confidence 75

Install

go get github.com/go-openapi/swag

Package Data

updated May 28, 2026
Latest versionv0.26.0
Imported by16.2K packages
Stars0
Forks0
Last activity1 months ago
Latest releaseUnknown
LicenseUnknown
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 Goa

Package goa implements a Go framework for writing microservices that promotes best practice by providing a single source of truth from which server code, client code, and documentation is derived.

Go OpenAPI Libraries 6.1K stars 2.0K imported-by 100% confidence
95

#2 Huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1

Go OpenAPI Libraries 4.1K stars 0 imported-by 65% confidence
85

#3 validate

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

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

#4 go-redoc

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

Go OpenAPI Libraries 94 stars 39 imported-by 65% confidence
71

#5 Fuego

Package fuego provides a set of tools to build HTTP servers in Go, that automatically generate OpenAPI 3.0 documentation and support for multiple web frameworks.

Go OpenAPI Libraries 0 stars 73 imported-by 80% confidence
67