🎥 Find movie theaters close to an address using Golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
README.md
doc.go
findcine.go
findcine_test.go
utils.go
utils_test.go

README.md

Find Cine Golang Build Status GoDoc

Find move theaters near an address using the Google Moveis page.

Install

First install is using go get:

go get github.com/vitorleal/find-cine-go

Example

package main

import (
  "fmt"
  "github.com/vitorleal/find-cine-go"
)

func main() {
  // pass an address to the method Near in findcine to get the movie theaters
  theaters, err := findcine.Near("Miami")

  // if return any error 
  if err != nil {
    fmt.Println(err.Error())
  }
  
  // print a list of theaters and movies
  fmt.Println(theaters)
}

Theater struct:

type Theater struct {
    Id      string
    Name    string
    Address string
    Phone   string
    Movies  []Movie
}

Movie struct:

type Movie struct {
    Title    string
    Duration string
    Times    []string
}

Docs

You can find the docs in GoDoc.org

Tests

To test it:

go test

If you want to test with code coverage:

go test -cover

Author

twitter/vitorleal
Vitor Leal