[Go 编程语言] go 返回错误的时候, 返回的值应该可用吗 November 6, 2025 · user 现在写的一个函数, 会返回多种错误, 我想的是在一些错误的时候, 值也是部份可用的, 在另一些错误的时候, 值是不可用的 之前看到有说函数返回错误的时候, 应该默认正常返回的值为 nil, 不知道有没有这个说法Share this: Click to share on Facebook (Opens in new window) Facebook Click to share on X (Opens in new window) X Comments Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. {{#message}}{{{message}}}{{/message}}{{^message}}Your submission failed. The server responded with {{status_text}} (code {{status_code}}). Please contact the developer of this form processor to improve this message. Learn More{{/message}}{{#message}}{{{message}}}{{/message}}{{^message}}It appears your submission was successful. Even though the server responded OK, it is possible the submission was not processed. Please contact the developer of this form processor to improve this message. Learn More{{/message}}Submitting…
Leave a Reply Cancel reply