1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

Use %q instead of "%s"

This commit is contained in:
jvoisin 2024-02-29 00:27:39 +01:00 committed by Frédéric Guillot
parent 5e5cb056c5
commit b04550e2f2
8 changed files with 8 additions and 8 deletions

View file

@ -67,5 +67,5 @@ type Session struct {
}
func (s *Session) String() string {
return fmt.Sprintf(`ID="%s", Data={%v}`, s.ID, s.Data)
return fmt.Sprintf(`ID=%q, Data={%v}`, s.ID, s.Data)
}

View file

@ -21,7 +21,7 @@ type UserSession struct {
}
func (u *UserSession) String() string {
return fmt.Sprintf(`ID="%d", UserID="%d", IP="%s", Token="%s"`, u.ID, u.UserID, u.IP, u.Token)
return fmt.Sprintf(`ID=%q, UserID=%q, IP=%q, Token=%q`, u.ID, u.UserID, u.IP, u.Token)
}
// UseTimezone converts creation date to the given timezone.