I'm not an Xbox owner so I don't know for sure, but I think that the XBOX one can share gold. The 360 cannot.
See the following support article
http://support.xbox.com/en-CA/xbox-one/xbox-live/xbox-live-gold-sharing-features
it seems to indicate that anyone with an account on your "home" console can share the XBOX benefits
At home with Xbox One
As an Xbox Live Gold member, you can share the benefits of Xbox Live Gold with others while they’re using your Xbox One console in your home. Friends and family can simply create their own account and gamertag on the console, which gives them the ability to enjoy Xbox Live online multiplayer gaming.
Friends or family members with their own gamertags coming over to play? No problem. They can sign in and play online multiplayer games, even if you sign off.