Socket
Socket
Sign inDemoInstall

github.com/hkurokawa/go-connpass

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hkurokawa/go-connpass


Version published
Created
Source

go-connpass

GoDoc Circle CI Coverage Status

connpass のサーチ API (https://connpass.com/about/api/) を Go で実装したものです。

インストール

$ go get github.com/hkurokawa/go-connpass

使い方

query := connpass.Query{Start: 1, Order: connpass.CREATE}
query.KeywordOr = []string{"go", "golang"}
query.Time = []connpass.Time{connpass.Time{Year: 2015, Month: 3}, connpass.Time{Year: 2015, Month: 4}}
result, e := query.Search()

if e != nil {
   log.Errorf("Failed to fetch the result: %v\n", e)
} else {
   fmt.Printf("Num returned: %d\n", res.Returned)
   fmt.Printf("Num available: %d\n", res.Available)
   fmt.Printf("Start position: %d\n", res.Start)
   for _, e := range res.Events {
      fmt.Printf("\t%s\t%d\t%s\n", e.Start, e.Id, e.Title)
   }
}

ライセンス

MIT

作者

Hiroshi Kurokawa

FAQs

Package last updated on 02 Aug 2019

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc