janitoring: Refactored notetxt.go
janitoring: Refactored notetxt.go

* Refactored notetxt.go so that the code looks more 'Go-ish'.

Signed-off-by: mr.Shu <8e7be411ad89ade93d144531f3925d0bb4011004@shu.io>

mrshu/go-notetxt