go basic function library