4 ms·
Yes: reply, err := redis.Givemethevalue(key) if err != nil { return err } thing, err := postgres.getById(reply) if err != nil { return err
by lobster_johnson 11y ago
Yes:
reply, err := redis.Givemethevalue(key)
if err != nil {
return err
}
thing, err := postgres.getById(reply)
if err != nil {
return err
}
Go allows you to assign with := if at least one of the left-hand-side variables is new.