nk-akun / mit6824

mit-6824,gomod包管理

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIT 6.824: Distributed Systems (2020) Starter Code

This repository contains a better version of the code from MIT's 6.824 intended for non-MIT students who just want to dive into the code.

The modifications include:

  1. Restructuring the code to use Go modules and to remove errors. Some of these errors include duplicate methods on the same package, when really they should belong to different folders/packages since they should not be compiled separately anyway (see the mr folder).
  2. Editing some scripts to account for the restructuring.
  3. Removing files that required Athena to use. The presence of these files will cause errors/warnings in your Go code otherwise.
  4. Removing golint warnings/errors. Most of these changes are cosmetic (changing x += 1 to x++, using camelCase instead of snake_case, adding documentation for exported functions/variables). The only non-cosmetic change is replacing calls to t.Fatalf from non-test goroutines in labrpc/test_test.go.

Why these changes?

The result of these changes is that you can immediately clone this repo and use all your IDE features without noise. Otherwise, your IDE will complain of errors from the original code (though running the terminal commands will work fine).

Source

The original code can be found in

git://g.csail.mit.edu/6.824-golabs-2020 6.824

About

mit-6824,gomod包管理


Languages

Language:Go 97.8%Language:Shell 2.0%Language:Makefile 0.1%