Skip to content
forked from Ja7ad/goMerge

Merge some files in a path with custom extension in golang

License

Notifications You must be signed in to change notification settings

marswang/goMerge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Merge some files in a path with custom extension in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%