updated godoc links
This commit is contained in:
parent
18a7549e50
commit
32e0eadc2f
|
@ -64,9 +64,9 @@ type Config struct {
|
||||||
//
|
//
|
||||||
// Note that the application will not be initialized/bootstrapped yet,
|
// Note that the application will not be initialized/bootstrapped yet,
|
||||||
// aka. DB connections, migrations, app settings, etc. will not be accessible.
|
// aka. DB connections, migrations, app settings, etc. will not be accessible.
|
||||||
// Everything will be initialized when [PocketBase.Start()] is executed.
|
// Everything will be initialized when [PocketBase.Start] is executed.
|
||||||
// If you want to initialize the application before calling [PocketBase.Start()],
|
// If you want to initialize the application before calling [PocketBase.Start],
|
||||||
// then you'll have to manually call [PocketBase.Bootstrap()].
|
// then you'll have to manually call [PocketBase.Bootstrap].
|
||||||
func New() *PocketBase {
|
func New() *PocketBase {
|
||||||
_, isUsingGoRun := inspectRuntime()
|
_, isUsingGoRun := inspectRuntime()
|
||||||
|
|
||||||
|
@ -79,9 +79,9 @@ func New() *PocketBase {
|
||||||
//
|
//
|
||||||
// Note that the application will not be initialized/bootstrapped yet,
|
// Note that the application will not be initialized/bootstrapped yet,
|
||||||
// aka. DB connections, migrations, app settings, etc. will not be accessible.
|
// aka. DB connections, migrations, app settings, etc. will not be accessible.
|
||||||
// Everything will be initialized when [PocketBase.Start()] is executed.
|
// Everything will be initialized when [PocketBase.Start] is executed.
|
||||||
// If you want to initialize the application before calling [PocketBase..Start()],
|
// If you want to initialize the application before calling [PocketBase.Start],
|
||||||
// then you'll have to manually call [PocketBase.Bootstrap()].
|
// then you'll have to manually call [PocketBase.Bootstrap].
|
||||||
func NewWithConfig(config Config) *PocketBase {
|
func NewWithConfig(config Config) *PocketBase {
|
||||||
// initialize a default data directory based on the executable baseDir
|
// initialize a default data directory based on the executable baseDir
|
||||||
if config.DefaultDataDir == "" {
|
if config.DefaultDataDir == "" {
|
||||||
|
|
Loading…
Reference in New Issue