module

package
v0.2.41 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 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

Index

Constants

View Source
const (
	ComponentFolderArchetypes = "archetypes"
	ComponentFolderStatic     = "static"
	ComponentFolderLayouts    = "layouts"
	ComponentFolderContent    = "content"
	ComponentFolderData       = "data"
	ComponentFolderAssets     = "assets"
	ComponentFolderI18n       = "i18n"

	FolderResources = "resources"
)

Module folder structure

Variables

Functions

This section is empty.

Types

type Component

type Component interface {
	Name() string
	Dir() string
	Language() string
}

type LoadInfo

type LoadInfo interface {
	Workspace
	Paths
}

type Module

type Module interface {
	Owner() Module
	Mounts() []Mount
	Dir() string
}

type Modules

type Modules interface {
	Proj() Module
	All() []Module
	IsProjMod(mod Module) bool

	GetSourceLang(source string) (string, bool)
}

type Mount

type Mount interface {
	Source() string
	Target() string
	Lang() string
	Marshal() string
}

type Paths

type Paths interface {
	ImportPaths() []string
	GetImports(moduleDir string) ([]string, error)
}

type Workspace

type Workspace interface {
	Fs() afero.Fs
	WorkingDir() string
	ThemesDir() string

	DefaultLanguage() string
	OtherLanguageKeys() []string
	GetRelDir(name string, langKey string) (dir string, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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