Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into issue97
Browse files Browse the repository at this point in the history
* origin/master:
  Duplication issue fixed.
  Some multiple-ness.
  Test fixed.
  Resynced and moved some functions around #78
  added functionnal option pattern for url parsing
  usage example, README
  calendar parsing url support

# Conflicts:
#	calendar.go
#	calendar_test.go
#	components.go
  • Loading branch information
arran4 committed Oct 16, 2024
1 parent 1015df8 commit 0d0e9ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (
"errors"
"fmt"
"io"
"reflect"
"strings"
"net/http"
"reflect"
"strings"
"time"
)

Expand Down
4 changes: 1 addition & 3 deletions calendar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ package ics
import (
"bytes"
"embed"
"github.com/google/go-cmp/cmp"
"bytes"
_ "embed"
"github.com/google/go-cmp/cmp"
"io"
"io/fs"
"net/http"
"os"
"path/filepath"
"regexp"
"strings"
Expand Down
8 changes: 0 additions & 8 deletions components.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,6 @@ func (event *VEvent) SetLastModifiedAt(t time.Time, props ...PropertyParameter)
event.SetProperty(ComponentPropertyLastModified, t.UTC().Format(icalTimestampFormatUtc), props...)
}

func (event *VEvent) SetEndAt(t time.Time, params ...PropertyParameter) {
event.SetProperty(ComponentPropertyDtEnd, t.UTC().Format(icalTimestampFormatUtc), params...)
}

func (event *VEvent) SetLastModifiedAt(t time.Time, params ...PropertyParameter) {
event.SetProperty(ComponentPropertyLastModified, t.UTC().Format(icalTimestampFormatUtc), params...)
}

// TODO use generics
func (event *VEvent) SetGeo(lat interface{}, lng interface{}, params ...PropertyParameter) {
event.setGeo(lat, lng, params...)
Expand Down

0 comments on commit 0d0e9ff

Please sign in to comment.