Get Day Offset within Year

Examples Filter
YearDay returns the day of the year specified by t, in the range [1,365] for non-leap years, and [1,366] in leap years.
package main

import (
	"fmt"
	"time"
)

func main() {

	now := time.Now()
	fmt.Println(now.YearDay())
}