INNER CODE UNIT · Go

func

pace/bricks · cmd/pb/main.go:118

func (e *errorDefinitionsOutputFlag) String() string {
	return string(*e)
}

func (e *errorDefinitionsOutputFlag) Set(v string) error {
	switch v {
	case "go", "md":
		*e = errorDefinitionsOutputFlag(v)
		return nil
	default:
		return errors.New(`must be "go" or "md"`)
	}
}

func (e *errorDefinitionsOutputFlag) Type() string {
	return "errorDefinitionsOutputFlag"
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…