Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 290 Bytes

README.md

File metadata and controls

18 lines (18 loc) · 290 Bytes

gcode

a generate library for go code

demo

	code := `package aa`
	bs, err := AddImport([]byte(code), "arr", "github.com/lingdor/magicarray")
	if err != nil {
		panic(err)
	}
    fmt.Println(string(bs))

output:

package aa
import(
arr "github.com/lingdor/magicarray"
)