Исходники и презентации
This commit is contained in:
16
lessons/errors/errors_handling/main.go
Normal file
16
lessons/errors/errors_handling/main.go
Normal file
@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "net/http"
|
||||
|
||||
// Need to show solution
|
||||
|
||||
func authentificate(*http.Request) error
|
||||
|
||||
func Authentificate(request *http.Request) error {
|
||||
err := authentificate(request)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user