Converting a custom type to string in Go March 10, 2023 by Tarik Convert the value to a string: func SomeFunction() string { return string(Foobar) }