Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
syscall.Stat_t with different fields' name between Darwin and Linux #32887
What version of Go are you using (
@ianlancetaylor @bcmills There are three ways to archive this: 1, We could add extra fields to `Stat_t` without break anything, but a little confusing; 2, We could add some *Getter* methods to `Stat_t`, which can provide universal accessor for underline; 3, The last and I preferred! We should fix this at go1.13, prepared for go2. Otherwise, developers have to use build tag to deal with the issue.
On Tue, Jul 2, 2019 at 9:25 PM Ian Lance Taylor ***@***.***> wrote: Unfortunately I don't think we can change this now. It would break existing programs. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#32887?email_source=notifications&email_token=AAAB3YTFMKNAJVVLJFWLJF3P5NJNLA5CNFSM4H4XYPX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBIATI#issuecomment-507674701>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAAB3YRHWL4ZPAWOYZM733DP5NJNLANCNFSM4H4XYPXQ> .
-- *Best Regards!* *- Spring*