utility

package
v0.0.0-...-e34364e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FourRandomNumbersIn

func FourRandomNumbersIn(area int) (result []int)

FourRandomNumbersIn() generates 4 random numbers in a range from 0 to given maximum and returns an array.

func GetCount

func GetCount(result *sparql.Results) int

GetCount() returns the amount of result values of a sparql result.

func Query

func Query(query string) (result *sparql.Results, err error)

Query() queries the Dbpedia API.

func Random

func Random(min, max int) int

Random() generates a random number in a range from 0 to given maximum.

func TitleFromID

func TitleFromID(ID int) (title string, err error)

TitleFromID() calls the Wikidata API to get the title to a given ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL