Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 629 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 629 Bytes

goMerge

Go Reference

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)
	}
}