doc: README for args example

Also started a README in the root examples directory.

Updates #14
This commit is contained in:
Michael McLoughlin
2019-01-01 15:46:42 -08:00
parent 4550badf58
commit 1b0ce66552
6 changed files with 137 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ func TestFunctionsEqual(t *testing.T) {
cases := []struct {
f, g interface{}
}{
{Second, func(x, y int32) int32 { return y }},
{StringLen, func(s string) int { return len(s) }},
{SliceLen, func(s []int) int { return len(s) }},
{SliceCap, func(s []int) int { return cap(s) }},