Documentation ¶
Index ¶
- type ExtensionsArray
- type HintsMap
- type PathsArray
- type ViewFinder
- func (this *ViewFinder) AddExtension(extension string) *ViewFinder
- func (this *ViewFinder) AddLocation(location string) *ViewFinder
- func (this *ViewFinder) AddNamespace(namespace string, hints []string) *ViewFinder
- func (this *ViewFinder) FileExist(filename string) bool
- func (this *ViewFinder) Find(name string) string
- func (this *ViewFinder) FindInPaths(name string, paths []string) string
- func (this *ViewFinder) FindNamespacedView(name string) string
- func (this *ViewFinder) Flush() *ViewFinder
- func (this *ViewFinder) GetExtensions() ExtensionsArray
- func (this *ViewFinder) GetHints() HintsMap
- func (this *ViewFinder) GetPossibleViewFiles(name string) []string
- func (this *ViewFinder) GetViews() ViewsMap
- func (this *ViewFinder) HasHintInformation(name string) bool
- func (this *ViewFinder) NormalizeName(name string) string
- func (this *ViewFinder) ParseNamespaceSegments(name string) []string
- func (this *ViewFinder) PrependLocation(location string) *ViewFinder
- func (this *ViewFinder) PrependNamespace(namespace string, hints []string) *ViewFinder
- func (this *ViewFinder) ReplaceNamespace(namespace string, hints []string) *ViewFinder
- func (this *ViewFinder) ResolvePath(path string) string
- type ViewsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewFinder ¶
type ViewFinder struct { // 分隔符 "::" HintPathDelimiter string // 路径 Paths PathsArray // 试图 Views ViewsMap // 命中 Hints HintsMap // 后缀 Extensions ExtensionsArray }
*
- 视图 *
- @create 2022-1-1
- @author deatil
func (*ViewFinder) AddExtension ¶
func (this *ViewFinder) AddExtension(extension string) *ViewFinder
添加后缀
func (*ViewFinder) AddLocation ¶
func (this *ViewFinder) AddLocation(location string) *ViewFinder
添加
func (*ViewFinder) AddNamespace ¶
func (this *ViewFinder) AddNamespace(namespace string, hints []string) *ViewFinder
添加命名空间
func (*ViewFinder) FindInPaths ¶
func (this *ViewFinder) FindInPaths(name string, paths []string) string
在目录里查找文件
func (*ViewFinder) FindNamespacedView ¶
func (this *ViewFinder) FindNamespacedView(name string) string
查找命名空间视图
func (*ViewFinder) GetPossibleViewFiles ¶
func (this *ViewFinder) GetPossibleViewFiles(name string) []string
添加
func (*ViewFinder) HasHintInformation ¶
func (this *ViewFinder) HasHintInformation(name string) bool
判断是否有分隔符
func (*ViewFinder) ParseNamespaceSegments ¶
func (this *ViewFinder) ParseNamespaceSegments(name string) []string
解析命名空间
func (*ViewFinder) PrependLocation ¶
func (this *ViewFinder) PrependLocation(location string) *ViewFinder
prependLocation
func (*ViewFinder) PrependNamespace ¶
func (this *ViewFinder) PrependNamespace(namespace string, hints []string) *ViewFinder
添加命名空间到前面
func (*ViewFinder) ReplaceNamespace ¶
func (this *ViewFinder) ReplaceNamespace(namespace string, hints []string) *ViewFinder
替换命名空间
Click to show internal directories.
Click to hide internal directories.