From e749b6a774c1620a1e9d036b48863d383a817b8c Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 14 Jun 2016 20:36:35 +0530 Subject: [PATCH] General code cleanup --- gomdb.go | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/gomdb.go b/gomdb.go index 36d924c..e15ad58 100644 --- a/gomdb.go +++ b/gomdb.go @@ -1,19 +1,4 @@ -/* -Copyright 2014 Kaissersoft Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - +// Package gomdb is a golang implementation of the OMDB API. package gomdb import ( @@ -24,21 +9,11 @@ import ( "net/url" ) -//======================================================================= -// Const -//======================================================================= - -const baseURL string = "http://www.omdbapi.com/?" -const plot string = "full" -const tomatoes string = "true" - -//======================================================================= -// Global vars -//======================================================================= - -//======================================================================= -// Structs -//======================================================================= +const ( + baseURL = "http://www.omdbapi.com/?" + plot = "full" + tomatoes = "true" +) //SearchResult is the type for the search results type SearchResult struct {