tool

package
v0.0.0-...-09e72e1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tool contains various utilities used with the mouthful database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportData

func ExportData(path string, threadGetter func() ([]model.Thread, error), commentGetter func() ([]model.Comment, error)) error

ExportData is responsible for exporting the data from the database

func ImportData

func ImportData(pathToDump string, importThread func(model.Thread) error, importComment func(model.Comment) error) error

ImportData is responsible for data imports to mouthful.

func WriteLine

func WriteLine(writer io.Writer, lineSymbol []byte, content []byte) error

WriteLine writes the content as a new line

Types

This section is empty.

Jump to

Keyboard shortcuts

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