revision

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package revision provide the module for working with dump files of Wikipedia revision.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Dir define where the revision directory located.
	Dir = ""
	// CleanDir define directory where revision that has been cleaned
	// up located.
	CleanDir = ""
)

Functions

func GetContent

func GetContent(id string) (string, error)

GetContent will return content of revision based on specific `id`.

func GetContentClean

func GetContentClean(id string) (string, error)

GetContentClean return content of revision that has been cleaning up.

func GetSize

func GetSize(id string) int64

GetSize return the file size of revision file.

func SetCleanDir

func SetCleanDir(path string)

SetCleanDir set directory where revision that has been cleaned up located.

func SetDir

func SetDir(path string)

SetDir will set revision directory to `path`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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