Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nxm/gocalendar

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nxm/gocalendar

  • v0.0.0-20201021171437-0163470f39d7
  • Source
  • Go
  • Socket score

Version published
Created
Source

📅 goCalendar - Open Source iCalendar Library

goCalendar is simply golang library for generating iCalendar format

You can find more information in specification

Usage

	//creating new Calendar
	cal := createCalendar()

	//creating new Event
	start := time.Now().Add(time.Hour) //start of event
	end := start.Add(time.Minute*45) //end of event

	simpleEvent := createEvent(start, end)
	simpleEvent.setTitle("Music lesson") //title
	simpleEvent.setDescription("Learning musical notes") //description
	simpleEvent.setLocation("School") //location

	//adding Event to Calendar
	cal.addEvent(simpleEvent)

	//saving Calendar with Events to file
	err := cal.save("example.ics")

Written under MIT License

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc