package two import ( "bytes" ) func Solve(buf []byte) (int, error) { r := bytes.NewReader(buf) graph, err := parseLines(r) if err != nil { return 0, err } possibleSafe := graph.dijkstra() return possibleSafe, nil }