votable

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package votable reads a VOTable. That is the table the Virtual Observatory's services answer with. It reads the fields and the rows. The rows come as XML cells or as a `BINARY` stream in base64.

It reads what the archives here send. That is numbers and arrays of them in one dimension, text and truths. Anything else is an error that names it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table is the fields of a VOTable and its rows.

func Read

func Read(from io.Reader) (*Table, error)

Read is the first table of a VOTable. When the service answered with an error, Read gives that error.

func (*Table) Len

func (table *Table) Len() int

Len is the number of rows.

func (*Table) Number

func (table *Table) Number(at int, name string) (float64, error)

Number is the value in a row under a field's name, as a number. Text is read as a number, and nothing is an error.

func (*Table) Text

func (table *Table) Text(at int, name string) (string, error)

Text is the value in a row under a field's name, as text. Numbers are written in full and truths as true or false. Nothing is written as nothing.

Jump to

Keyboard shortcuts

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