Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File represents an open file, which will typically be the response body of a Pages request.
type Root ¶ added in v1.24.0
type Root interface { Lstat(ctx context.Context, name string) (os.FileInfo, error) Readlink(ctx context.Context, name string) (string, error) Open(ctx context.Context, name string) (File, error) }
Root abstracts the things Pages needs to serve a static site from a given root rootPath.
Click to show internal directories.
Click to hide internal directories.