Your gold membership is stuck to your account so yes it will transfer over with your gamertag to the Xbox one.
With the whole gold sharing thing, Xbox one has something different from the current set up.
Each of your XBL gold Gamertags can designate one Xbox one as the Home console, and if you do that, anyone who is using that console can get the benefits of gold without you ever signing in. You can only have one home console assigned to your gamertag at once but if the console has a gamertag with Gold on it then everyone gets the benefits of gold. If that gamertag did not assign the console as the Home console, then everyone gets the benefits of gold only if a gamertag with Gold is currently signed in. So you can assign one console as your home console to give everyone using the console gold for free, and sign in on a second console to give everyone using the second console gold for free until you sign out.
If you have multiple accounts on your Xbox One and only one has Gold membership, all of them can take advantage of what Gold has to offer.
You can do the same on other Xbox One's with friends accounts, as long as your account is logged in on their X1, they can also take advantage of Gold. No reason to sign in as a guest for CoD or other games that require Gold.