db

package
v0.0.0-...-61bd5a7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB defines a file db

func New

func New(name string) DB

New returns a new db instance

func (DB) Read

func (db DB) Read() string

Read reads file content and returns it as string

func (DB) Write

func (db DB) Write(content string)

Write writes string to file

func (DB) WriteJSON

func (db DB) WriteJSON(content interface{})

WriteJSON writes json to file

Jump to

Keyboard shortcuts

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