Discover Packages
github.com/berops/claudie
internal
templateUtils
package
Version:
v0.9.2
Opens a new window with list of versions in this module.
Published: Dec 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ExtractNetmaskFromCIDR extracts the netmask from the CIDR notation.
LoadTemplate creates template instance with auxiliary functions from specified template.
type Templates struct {
Directory string
}
directory - output directory
MUST be relative to base directory, i.e. services/terraformer/etc
creates a file from template and saves it to the directory specified in Templates
the directory MUST be relative to base directory, i.e. services/terraformer/templates
creates a file from template and returns it as a string variable
returns error if not successful, generated template as a string and nil otherwise
Source Files
¶
Click to show internal directories.
Click to hide internal directories.