file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package file provides functionality to load and save marshal files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSaveJSONWorker

func NewSaveJSONWorker(repeat time.Duration, path string, data interface{}) *worker.Worker

NewSaveJSONWorker Starts a worker, which save periodly data to json file

func ReadJSON

func ReadJSON(path string, data interface{}) error

ReadJSON reads a config model from path of a yml file

func ReadTOML

func ReadTOML(path string, data interface{}) error

ReadTOML reads a config model from path of a yml file

func SaveJSON

func SaveJSON(outputFile string, data interface{}) error

SaveJSON 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