Re: [go-nuts] Golang Grep

2016-06-15 Thread Steven Blenkinsop
Be careful with case. It should be flag.Arg(0), not flag.arg(0). Also, you're missing the comma between arguments. It should be: f := grep(flag.Arg(0), flag.Arg(1)) Note the comma between the two arguments. On Wed, Jun 15, 2016 at 11:54 AM ToSuNuS wrote: > Hi guys, > > How do I assign a variab

[go-nuts] Golang Grep

2016-06-15 Thread ToSuNuS
Hi guys, How do I assign a variable function of sample scripts are used on the following address? https://github.com/StefanSchroeder/Golang-Regex-Tutorial/blob/master/01-chapter3.markdown How can I define this as a variables of function . grep (flag.arg (0) flag.arg (1)) I tried as follows. H