summaryrefslogtreecommitdiff
path: root/main.go
blob: f656acce467dbed77bbccacb69eb36744bc861f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"fmt"
	"os"
)

type Len string

func (l Len) String() string {
	return fmt.Sprintf("%3d %s", len(l), string(l))
}

func main() {
	for _, a := range os.Args[1:] {
		fmt.Println(Len(a))
	}
}