Discover Packages
github.com/fredbi/core/codegen/funcmaps
golang
package
Version:
v0.0.0-...-655fa59
Opens a new window with list of versions in this module.
Published: Jul 26, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 1 module, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
golang default funcmap
List of functions exposed to templates.
Available functions
arrayInitializer
assert
blockcomment
camelize
cleanPath
comment
contains
containsCI
containsPkgStr
dasherize
dict
dropPackage
escapeBackticks
filename
gt0
hasInsecure
hasPrefix
hasSecure
httpStatus
humanize
imports
inspect
isInteger
joinFilePath
joinPath
json
mdBlock
mediaTypeName
pad
padSurround
pascalize
pluralizeFirstWord
prettyjson
snakize
stringContains
toGoName
toPackageName
toPackagePath
trimSpace
varname
This documentation has been generated from source.
Please run go generate to update this file.
Expand ▾
Collapse ▴
Documentation
¶
Package golang proposes a default template.FuncMap suited for golang code generation.
DefaultFuncMap yields a map with default functions for use in the templates.
The available functions are specifically biased toward golang code generation.
These are made available to every template.
Error is a sentinel error type for all errors raised by this package.
const ErrFuncMap Error = "golang funcmap error"
ErrFuncMap is a sentinel error that wraps all errors raised by this package.
const ErrTemplateAssertion Error = "assertion failed in template"
ErrTemplateAssertion is an error reported by the "assert" function in templates.
type Option func(o *options)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.