Hebcal's greg package converts between Gregorian dates and R.D. (Rata Die) day numbers.
Example
package main
import (
"fmt"
"time"
"github.com/hebcal/greg"
)
func main() {
rataDie := greg.ToRD(1995, time.December, 17)
fmt.Println(rataDie)
// Output: 728644
}