title: Allow to run from Sunday to Friday?
body: <p>The following PHP code that allows a process to only run between certain times.  How would this be done in GoLang?</p>
  
  <pre><code>$curdate = date('Y-m-d');
  $mydate=getdate(strtotime($curdate));
  if ( $mydate['wday'] === 0 ) {
    if ( date('H') &lt; 15 ) { exit; }; // This is for 0 Sunday!!!
  }
  if ( $mydate['wday'] === 5 ) {
    if ( date('H') &gt; 19 ) { exit; }; // This is for 5 Friday!!!
  }
  if ( $mydate['wday'] === 6 ) {
    exit;  // This is for 6 Saturday //
  }
  </code></pre>