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:
parent
5e5cb056c5
commit
b04550e2f2
8 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue