Skip to content

Commit

Permalink
more bits
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Mar 30, 2018
1 parent b5086da commit 80a7246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pointers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Now we've made our wallet, try and run the test again

As expected, we need to define these methods to make the test pass.

Remember to only do enough to make the tests run. We need to make sure our test fails correctly with a clear error message
Remember to only do enough to make the tests run. We need to make sure our test fails correctly with a clear error message.

```go
func (w Wallet) Deposit(amount int) {
Expand Down Expand Up @@ -77,7 +77,7 @@ type Wallet struct {
}
```

In Go if a symbol (so variables, types, functions et al) starts with a lowercase symbol then it is private _outside the package it's defined in_
In Go if a symbol (so variables, types, functions et al) starts with a lowercase symbol then it is private _outside the package it's defined in_.

In our case we want our methods to be able to manipulate this value but no one else.

Expand Down
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Learn Go with Tests

_Or learn test-driven development with Go_

[![Build Status](https://travis-ci.org/quii/learn-go-with-tests.svg?branch=master)](https://travis-ci.org/quii/learn-go-with-tests)

## Why

- Explore the Go language by writing tests
- Get a grounding with TDD. Go is a good language for learning TDD because it is a simple language to learn and testing is built in
- **Get a grounding with TDD**. Go is a good language for learning TDD because it is a simple language to learn and testing is built in
- Be confident that you'll be able to start writing robust, well tested systems in Go

## Table of contents
Expand Down

0 comments on commit 80a7246

Please sign in to comment.