What library is this? Is it on GitHub? Can we look at it? What section of code is returning nil? Is nil the problem? Or is there a panic? What's your code look like? How are you invoking 'go test'? What's a "citc"? That's just some of the questions that sprang into my mind in the first 5 seconds of reading your question.