Re: [go-nuts] Re: Golang Grep

2016-06-15 Thread ToSuNuS
It will also capture any variables referenced inside it, but that > doesn't happen here. > > On Wed, Jun 15, 2016 at 12:17 PM ToSuNuS <osman...@gmail.com > > wrote: > >> Hi Steven, >> >> I mistyped the opening question. >> >> However, the script has be

Re: [go-nuts] func or if in many return

2018-03-28 Thread ToSuNuS
Hi Jan, I gave too many fixed values. For this reason I was having trouble. Regards. 28 Mart 2018 Çarşamba 14:32:05 UTC+3 tarihinde Jan Mercl yazdı: > > On Wed, Mar 28, 2018 at 1:20 PM ToSuNuS <osman...@gmail.com > > wrote: > > > Is there a way to

[go-nuts] func or if in many return

2018-03-28 Thread ToSuNuS
Hello friends, I wrote a sample function like this. func OsVersion () string { result: = "some text" if _, err: = os.Stat ("/ etc / redhat_version"); err == nil { sed / s. \ release * / sed / s. \ / * * `) .Output () ) Check (err, "OsVersion does not work.") result: = strings.TrimSpace (string