Documentation ¶
Index ¶
Constants ¶
View Source
const NotfoundResource = Resource("")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterScanner ¶
type AfterScanner interface { // AfterScan // called after resource scanned to any pointer struct. AfterScan() error }
AfterScanner is an interface for resource scanner.
type BeforeScanner ¶
type BeforeScanner interface { // BeforeScan // called before resource scanned to any pointer struct. BeforeScan() error }
BeforeScanner is an interface for resource scanner.
type Resource ¶
type Resource string
Resource is a type name for configuration file.
f := config.Resource("./config/app.yaml") f := config.Resource("/data/sketch/config/app.yaml")
Click to show internal directories.
Click to hide internal directories.