Documentation
¶
Index ¶
- func Abs(paths ...string) string
- type Path
- type Paths
- func (r *Paths) App() packages.Path
- func (r *Paths) Bootstrap() packages.Path
- func (r *Paths) Config() packages.Path
- func (r *Paths) Database() packages.Path
- func (r *Paths) Facades() packages.Path
- func (r *Paths) Lang() packages.Path
- func (r *Paths) Main() packages.Path
- func (r *Paths) Migrations() packages.Path
- func (r *Paths) Models() packages.Path
- func (r *Paths) Module() packages.Path
- func (r *Paths) Public() packages.Path
- func (r *Paths) Resources() packages.Path
- func (r *Paths) Routes() packages.Path
- func (r *Paths) Storage() packages.Path
- func (r *Paths) Tests() packages.Path
- func (r *Paths) Views() packages.Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (*Path) Import ¶
Import returns the sub-package import path, or the main package import path if no sub-package path is specified. For example, if r.path is "app/http/controllers" and r.main is "github.com/goravel/goravel", it returns "goravel/app/http/controllers". If r.path is empty, it returns "goravel". The path will be returned directly if it starts with "github.com/goravel/framework/", given it's a framework sub-package.
type Paths ¶
type Paths struct {
// contains filtered or unexported fields
}
func (*Paths) Migrations ¶
func (*Paths) Module ¶
Module returns the module path of the package, eg: github.com/goravel/framework/auth.
Click to show internal directories.
Click to hide internal directories.