Posts

mkdir - make directory 创建目录

ls - list 列出文件与目录

bytes和strings函数比对

Ex 9.1

Add a function Withdraw(amount int) bool to the gopl.io/ch9/bank1 program. The result should indicate whether the transaction …

Ex 8.6

Add depth-limiting to the concurrent crawler. That is, if the user sets -depth=3, then only URLs reachable by at most three …

Ex 8.1

Modify clock2 to accept a port number, and write a program, clockwall, that acts as a client of several clock servers at once, …

Ex 7.1

Using the ideas from ByteCounter, implement counters for words and for lines. You will find bufio.ScanWords useful.

Ex 6.1

Implement these additional methods:

func (*IntSet) Len() int // return the number of elements

func (*IntSet) Remove(x int) …

Ex 5.1

Change the findlinks program to traverse the n.FirstChild linked list using recursive calls to visit instead of a loop.

Ex 4.8

Modify charcount to count letters, digits, and so on in their Unicode categories, using functions like unicode.IsLetter.