{"id":597,"date":"2022-04-28T13:26:00","date_gmt":"2022-04-28T13:26:00","guid":{"rendered":"https:\/\/andrejacobs.org\/?p=597"},"modified":"2022-05-27T15:53:03","modified_gmt":"2022-05-27T15:53:03","slug":"learning-go-day-8","status":"publish","type":"post","link":"https:\/\/andrejacobs.org\/study-notes\/learning-go-day-8\/","title":{"rendered":"Learning Go – Day 8"},"content":{"rendered":"\n

Featured image by Egon Elbre<\/a><\/p>\n\n\n\n

Implementing the Stringer interface<\/h3>\n

The standard library defines the Stringer<\/code> interface that is used to return a string.<\/p>\n

type Stringer interface {\n\tString() string\n}\n<\/code><\/pre>\n