about summary refs log blame commit diff
path: root/nix/buildTypedGo/example/main.go2
blob: 8986f57b94c759ed4c2e9185c2b4888575cc2c0c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                           
package main

import (
	"fmt"
)

func Print(type T)(s []T) {
	for _, v := range s {
		fmt.Print(v)
	}
}

func main() {
	Print([]string{"Hello, ", "TVL\n"})
}