Documentation ¶
Index ¶
- Variables
- func SaveGitIntialCommitAndBranch(dir, authorName, authorEmail, message, branch string) error
- type LibTemplate
- type LibTemplateOption
- func WithAuthorEmail(authorEmail string) LibTemplateOption
- func WithAuthorName(authorName string) LibTemplateOption
- func WithCopyrightHolder(copyrightHolder string) LibTemplateOption
- func WithDescription(description string) LibTemplateOption
- func WithGitInit(gitInit bool) LibTemplateOption
- func WithInitialBranch(initialBranch string) LibTemplateOption
- func WithLibKName(libKName string) LibTemplateOption
- func WithLibName(libName string) LibTemplateOption
- func WithOriginUrl(origin string) LibTemplateOption
- func WithPatchdir(patchedir bool) LibTemplateOption
- func WithProjectName(projectName string) LibTemplateOption
- func WithProvideCMain(ProvideCMain bool) LibTemplateOption
- func WithVersion(version string) LibTemplateOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed CODING_STYLE.md.tmpl CodingStyleTemplate string //go:embed Config.uk.tmpl ConfigUkTemplate string //go:embed CONTRIBUTING.md.tmpl ContributingTemplate string //go:embed COPYING.md.tmpl CopyingTemplate string //go:embed main.c.tmpl MainTemplate string //go:embed Makefile.uk.tmpl MakefileUkTemplate string //go:embed README.md.tmpl ReadmeTemplate string )
Functions ¶
Types ¶
type LibTemplate ¶
type LibTemplate struct { ProjectName string LibName string LibKName string LibKNameUpperCase string Version string Description string AuthorName string AuthorEmail string ProvideCMain bool WithDocs bool WithPatchedir bool GitInit bool InitialBranch string CopyrightHolder string Year int Commit string OriginUrl string KconfigDependencies []string SourceFiles []string }
func NewTemplate ¶
func NewTemplate(ctx context.Context, topts ...LibTemplateOption) (LibTemplate, error)
type LibTemplateOption ¶
type LibTemplateOption func(*LibTemplate)
func WithAuthorEmail ¶
func WithAuthorEmail(authorEmail string) LibTemplateOption
func WithAuthorName ¶
func WithAuthorName(authorName string) LibTemplateOption
func WithCopyrightHolder ¶
func WithCopyrightHolder(copyrightHolder string) LibTemplateOption
func WithDescription ¶
func WithDescription(description string) LibTemplateOption
func WithGitInit ¶
func WithGitInit(gitInit bool) LibTemplateOption
func WithInitialBranch ¶
func WithInitialBranch(initialBranch string) LibTemplateOption
func WithLibKName ¶
func WithLibKName(libKName string) LibTemplateOption
func WithLibName ¶
func WithLibName(libName string) LibTemplateOption
func WithOriginUrl ¶
func WithOriginUrl(origin string) LibTemplateOption
func WithPatchdir ¶
func WithPatchdir(patchedir bool) LibTemplateOption
func WithProjectName ¶
func WithProjectName(projectName string) LibTemplateOption
func WithProvideCMain ¶
func WithProvideCMain(ProvideCMain bool) LibTemplateOption
func WithVersion ¶
func WithVersion(version string) LibTemplateOption
Click to show internal directories.
Click to hide internal directories.