[cwt] add godoc comments