Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a guide to running the example code #8

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# Network Programming with Go
Code repository for [the book](https://nostarch.com/networkprogrammingwithgo)


[![Build Status](https://travis-ci.org/awoodbeck/gnp.svg?branch=master)](https://travis-ci.org/awoodbeck/gnp)

## How to run the examples:
Unlike a book to learn programming, this book discusses network concepts and provides code snippets that utilize the testing functionality of Go. If you have a good knowledge of Go and are following along, you can figure out the code or write your own.

If you are still learning Go, here are the steps you can take to run the examples from this repo:

Checkout the code:

git clone git@github.com:awoodbeck/gnp.git

Run all the tests:

cd gnp
go test -timeout 300s -race -bench=. ./...

Alternatively, run the tests from one chapter:

go test -v -timeout 300s -race -bench=. ./ch03/dial_fanout_test.go