No it's the opposite. Unwrap() means the dev said this will never not be set. Expect() is saying if this value is not available exit the program with this user facing error message.
Re:Things Go needs more than generics
by ModernMech on Monday October 04, 2021 @09:12AM
(#28746235)
expect() is like unwrap() but you can give a message as an argument.
Isn't expect() supposed to cover that case?