Source

go-play / uniq.go

Full commit
package main

import (
	"flag"
	"fmt"
)

func main() {
	flag.Parse()

	prev := ""
	for _, s := range flag.Args() {
		if s == prev {
			continue
		}
		fmt.Printf("%s ", s)
		prev = s
	}
}