Flowchart (ISO 5807)
Source code
Go
func safeDiv(a, b int) (int, error) {
if b == 0 {
return 0, errors.New("ділення на нуль")
}
return a / b, nil
}The editor opens with this code — change it and the chart redraws.
- Language
- Go
- Constructs
- returning an error
- Topic
- Exceptions
- Formats
- Word, Visio, draw.io, PDF, SVG