Root file is index.go, hence to run the code: "go run index.go" All the codes are in the "mylib" package. Use it in index.go