services

package
v0.0.0-...-62b1c83 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url string, filename string, timeout int64, sheet string, checkCSV bool) (err error)

Download exported

func GetAbsoluteFilePath

func GetAbsoluteFilePath(relFilePath string, sheet string) (result string, err error)

GetAbsoluteFilePath get abs path

func WriteDataDumpFiles

func WriteDataDumpFiles(csvFilePath string, jsonDirPath string, sheet string) error

WriteDataDumpFiles exported

func WriteFiles

func WriteFiles(csvFilePath string, config config.Config, cleanTagsDir, cleanTagsFileName string) error

WriteFiles Write files

func WriteLanguageFiles

func WriteLanguageFiles(csvFilePath string, jsonDirPath string, sheet string) error

WriteLanguageFiles exported

Types

type CleanTranslation

type CleanTranslation struct {
	Error *string `json:"error"`
	Fixe  *string `json:"fixe"`
}

CleanTranslation struct used to clean hugo translations files

type TomlFormat

type TomlFormat struct {
	Key    string
	Values [][]string
}

TomlFormat struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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