The -prttostr option causes functions to be generated that print the contents of variables of generated types to a string variable. In this case, a function named PrintToString is generated in the Marshal.go file with the following signature:
func PrintToString(val interface{}) string
The val argument holds a value of the type to be printed. As was the case for the Print function, only variables of PDU types may be passed to the function for printing.