Linting fixes about struct alignment.

This commit is contained in:
Stanislav Nikitin 2021-01-08 12:01:53 +05:00
parent 7f04a9a7bb
commit 3ebff29113
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -55,16 +55,16 @@ var PasteKeepsCorrelation = map[string]int{
// Paste represents paste itself.
type Paste struct {
ID int `db:"id" json:"id"`
CreatedAt *time.Time `db:"created_at" json:"created_at"`
Title string `db:"title" json:"title"`
Data string `db:"data" json:"data"`
CreatedAt *time.Time `db:"created_at" json:"created_at"`
KeepFor int `db:"keep_for" json:"keep_for"`
KeepForUnitType int `db:"keep_for_unit_type" json:"keep_for_unit_type"`
Language string `db:"language" json:"language"`
Private bool `db:"private" json:"private"`
Password string `db:"password" json:"password"`
PasswordSalt string `db:"password_salt" json:"password_salt"`
ID int `db:"id" json:"id"`
KeepFor int `db:"keep_for" json:"keep_for"`
KeepForUnitType int `db:"keep_for_unit_type" json:"keep_for_unit_type"`
Private bool `db:"private" json:"private"`
}
// CreatePassword creates password for current paste.