Search code examples
gotimelocale

Can I get the first day of the week based on locale data?


Different countries begin a work week on different days (Sunday vs. Monday, etc.)

Go has the text/language package, and the time package has support for locations, but I can't find anything in the core libraries that mention the start of the week.

Is there a way to get the first day of the week, given a locale?


Solution

  • No. There is no std library that can do this