golang

package
v0.0.0-...-75e0045 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package golang provides the Go-specific template function map used by the go-swagger code generator. Functions defined here are pure utilities with no dependency on the generator's own types (GenSchema, GenOperation, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap(mangler mangling.NameMangler) template.FuncMap

FuncMap returns a template.FuncMap containing all Go-specific template functions that are independent of generator types. Callers typically merge additional entries (e.g. LanguageOpts-dependent or type-dependent functions) on top.

func PrefixForName

func PrefixForName(arg string) string

PrefixForName returns a human-readable prefix for names starting with special characters. It is used as mangling.PrefixFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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