16 lines
338 B
Go
16 lines
338 B
Go
package models
|
|
|
|
type Database struct {
|
|
Path string `json:"dbPath,omitempty"`
|
|
Token string `json:"token,omitempty"`
|
|
Create bool `json:"create,omitempty"`
|
|
}
|
|
|
|
func (d *Database) SetDefaultPath() {
|
|
d.Path = "data/mydatabase.db"
|
|
}
|
|
|
|
func (d *Database) SetDefaultToken() {
|
|
d.Token = "6576889abd578frdj,ouzt6909-gtrfb"
|
|
}
|