Utilities for Go structs