Add lib.go

	Various and elementary Go functions