MCPcopy Index your code
hub / github.com/MatthewJamesBoyle/golang-interview-prep

github.com/MatthewJamesBoyle/golang-interview-prep @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
8 symbols 21 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

golang interview prep

Goal of this repo.

This repo contains Golang code that does not follow best practises, contains bugs and security issues. It is intended to be used as an interview exercise or a practise exercise for jr/mid-level Go engineers.

This repo contains, technically, a functional golang application that receives a request to create a user and stores it into a postgres Database.

As an exercise, you could try identifying and correcting some of the issues in this repo. This would work particularly well as a pair programming exercise.

Getting Started

You can get the database started by running docker-compose up

Once running the Go app, you can make a CURL request as follows:

 curl -X POST -H "Content-Type: application/json" -d '{"username":"john", "password":"secret"}' http://localhost:8080/user

Solutions

you can find the solutions here

Core symbols most depended-on inside this repo

NewService
called by 1
internal/user/service.go
runMigrations
called by 1
cmd/main.go
AddUser
called by 0
internal/user/http.go
AddUser
called by 0
internal/user/service.go
main
called by 0
cmd/main.go

Shape

Function 3
Struct 3
Method 2

Languages

Go100%

Modules by API surface

internal/user/service.go4 symbols
internal/user/http.go2 symbols
cmd/main.go2 symbols

Datastores touched

test_repoDatabase · 1 repos

For agents

$ claude mcp add golang-interview-prep \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page