goMerge

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 7 Imported by: 0

README

goMerge

Merge some files in a path with custom extension in golang

goMerge

Feature

  • Walk in a path with a goroutine using parallelism
  • Merge files with custom extension
  • Remove unmerged files with remove flag

Install goMerge

go get -u github.com/Ja7ad/goMerge

Example

package main

import (
	fileMerger "github.com/Ja7ad/goMerge"
	"log"
)

func main() {
	err := fileMerger.Merge("./test", ".log", "./test/merged.txt", true)
	if err != nil {
		log.Fatal(err)
	}
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(path string, extension string, outMergedName string, remove bool) error

Merge get files directory, extension, outMergedName and remove flag for merge files to one file

Types

This section is empty.

Jump to

Keyboard shortcuts

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