By 1912 Gosling became commanding officer (CO) of the 3rd Battalion of his own regiment, the KRRC, then serving in India. Almost two years later, after the British entry into World War I in the summer of 1914, he led the battalion to the Western Front. He remained in command until February 1915 when he was wounded during the attack on St Eloi.[2]
His wound must have healed relatively quickly as he returned to the Western Front in May where, promoted to the temporary rank of brigadier general, he took command of the 7th Infantry Brigade, "which he commanded for twelve months" until he was again wounded in battle, this time severely, in May 1916. Later in the year he was awarded the CMG, while his permanent rank was progressed to colonel back in March.[2][6]
In December 1916 he again returned to France and, after again being promoted to temporary brigadier general,[7] was given another brigade to command, this time the 10th. This was a post he would hold until 12 April 1917 when, his luck having by now run out, he was killed during the Battle of Arras, as was his brigade major, Captain Fellowes, who was killed by an enemy sniper, while Gosling himself "was killed by a shell. They are buried side by side in the Hervin Farm British Cemetery, St. Laurent-Blagny, France".[2]
Davies, Frank; Maddocks, Graham (2014) [1995]. Bloody Red Tabs: General Officer Casualties of the Great War 1914–1918. Leo Cooper. ISBN978-1-78346-237-7.