The original implementation was effectively just writing C in Go. Signed-off-by: Ophestra <cat@gensokyo.uk>