()
| 216 | } |
| 217 | |
| 218 | func platformName() string { |
| 219 | switch runtime.GOOS { |
| 220 | case "darwin": |
| 221 | return "darwin" |
| 222 | case "windows": |
| 223 | return "win32" |
| 224 | default: |
| 225 | return "linux" |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | func (s *Server) requireAuth(next http.Handler) http.Handler { |
| 230 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected