Waveform generator for golang