[go-nuts] Running golangci-lint run for various different files

2022-01-26 Thread 'Beginner' via golang-nuts
Hey when i run golangci-lint run app/main.go utils/db/db.go i get an error stating `named files must all be in one directory golang` why is that ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

[go-nuts] New to Unit Testing - Testing HTTP requests and response codes

2021-08-17 Thread 'Beginner' via golang-nuts
Hey, so I am pretty new to Golang and Unit tests as a whole. Right now I am trying to create some tests for this section of code. I want to test in the case of an unexpected HTTP response but I don't know how or where to begin. I am new to mocking and for my previous tests created mocks to test