Update segment.go