Separate the handling of each individual target type into its own function called by GetTarget()'s case switch. This makes the function more readable and the target object creation reusable. Added an empty line after each creation of irTarget to make it easier to visually distinguish the cases that fall through. |
||
|---|---|---|
| .. | ||
| v2 | ||
| server.go | ||