Treasuries are exempt from state taxes, but it can work to avoid paying taxes on government bonds in ETFs and mutual funds.