auxiliary verb
Continuative form of ごとし, used in formal or literary contexts to mean 'like' or 'as'. Often appears in set phrases or classical-style expressions.
See also: 如し
風のごとく去っていった。
He left like the wind.
彼は神のごとく崇められた。
He was worshipped as a god.