Skip to content

Create type-safe collections with Xgen for Go programming language

License

Notifications You must be signed in to change notification settings

MehmetEminKaymaz/Xgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Xgen

Create type-safe collections with Xgen for Go programming language (metaprogramming)

Generate go code with go (Meta programming)

Usage

type MyInt int

func main() {

	var typeNames =[]string{
		"MyInt",
		//other types...
	}
	Xgen.F(typeNames)//the function generate a go file that has generics for MyInt type


	
}

Or use go generate command

Reflection is usefull but some case you need to use metaprogramming.

About

Create type-safe collections with Xgen for Go programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages