William M. Goyer, 47, a retired Air Force chief master sergeant and a project specialist for the director of the Air National Guard, died at a hotel in Memphis, Tenn., Saturday following a heart attack. Mr. Goyer was a resident of Burke, Va., and was in Memphis on business.

He was born in Roanoke, Va., and enlisted in the Air Force in 1950. At one time he was stationed at the U.S. Embassy in Ottawa. From 1958 until his retirement from the service in 1972, he was on the staff of the secretary of the Air Force in Washington. He then went to work as a civilian in the office of the director of the Air National Guard.

Mr. Goyer was the executive director of the Air National Guard Non-Commissioned Officers Association, a member of the board of directors of the Air Force Enlisted Widows Home, and a member of the Air Force Association and the National Guard Association of the United States.

Survivors include his wife, the former Edith Marie Rife, of the home; a son, Gary W., of Roanoke, a daughter, Teresa G., of the home, and a brother, Ronald L., and his parents, William G. and Frances E. Goyer, all of Roanoke.