templates

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT, BSD-3-Clause Imports: 8 Imported by: 1 module, 0 packages

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.

Documentation

Overview

Package templates holds the file templates of the "template generate" commands. They come from the salesforcedx-templates repository (see SOURCE and LICENSE.txt) and are stored as one compressed archive for each template directory. "make update-sf-templates" rebuilds the archives.

Index

Constants

This section is empty.

Variables

View Source
var License string

License is the license of the templates.

View Source
var Source string

Source names the repository, tag and commit the archives were built from.

Functions

func File

func File(name, path string) ([]byte, error)

File returns one file of a template directory.

func Files

func Files(name string) (map[string][]byte, error)

Files returns the files of a template directory, keyed by path relative to the directory, with forward slashes.

func Names

func Names() []string

Names returns the names of the template directories, such as apexclass and project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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