Re: [go-nuts] Re: How to make the first character in a string lowercase?

2022-11-04 Thread peterGo
Prithu Adhikary, As I pointed out earlier, your code only works when the first character is ASCII. For example, it does not work for the Greek alphabet, it does not work for an empty string. https://groups.google.com/g/golang-nuts/c/WfpmVDQFecU/m/CQiT04mRAQAJ Peter On Friday, November 4,

Re: [go-nuts] Re: How to make the first character in a string lowercase?

2022-11-04 Thread Prithu Adhikary
May be this? func main() { myString := "LikeThis" print(strings.ToLower(myString[:1]) + myString[1:]) } On Friday, 19 June 2020 at 01:48:23 UTC+5:30 leonidas...@gmail.com wrote: > > > package main > > import ( > "fmt" > "unicode" > > ) > > func main() { >

[go-nuts] Re: WebAssembly and Filesystem access

2022-11-04 Thread Brian Candler
Not sure this is what you're looking for, but Go 1.16 introduced an abstract filesystem interface: https://pkg.go.dev/io/fs https://go.dev/doc/go1.16#fs "the new testing/fstest package provides a TestFS function

Re: [go-nuts] go[runtime.rt0_go]: why should 104 be subtracted from g0 stack 64k?

2022-11-04 Thread Ian Lance Taylor
On Thu, Nov 3, 2022 at 7:46 AM liiux...@gmail.com wrote: > > asm_amd64.s > > Please explain why 104 should be subtracted from g0 stack? Interesting question. The number 104 appears to date back to the first implementation of split stacks in

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Konstantin Khomoutov
On Fri, Nov 04, 2022 at 04:58:35AM -0700, Canuto wrote: > I'm just starting out with go ... > I have searched for lights on this string but without success. > What does this sign mean " _, err " , what the underscore symbol means here? > If you're starting with Go, please

[go-nuts] WebAssembly and Filesystem access

2022-11-04 Thread 'Kevin Chowski' via golang-nuts
Hey all, I couldn't find a prior thread or other information on the web after a bit of searching, but if this is answered elsewhere I'd appreciate a link to follow. I am on a project which primarily ships a Go command line interface (CLI), but we have aspirations of using the wasm compilation

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Francesco Bottoni
Means: "just ignore the result at the _ position" On Fri, Nov 4, 2022, 19:02 Jan Mercl <0xj...@gmail.com> wrote: > On Fri, Nov 4, 2022 at 6:54 PM Canuto wrote: > > > I'm just starting out with go ... > > I have searched for lights on this string but without success. > > What does this sign

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Jan Mercl
On Fri, Nov 4, 2022 at 6:54 PM Canuto wrote: > I'm just starting out with go ... > I have searched for lights on this string but without success. > What does this sign mean " _, err " , what the underscore symbol means here ? > > func generateSalt() string { > randomBytes := make([]byte, 16) >

Re: [go-nuts] Re: Unable to create Api | Go Operator | Go issue

2022-11-04 Thread Ian Lance Taylor
This sounds like a question to ask in a Kubernetes group, not here. This is a place to ask about the Go language and standard library, not about all programs written in Go. Ian On Fri, Nov 4, 2022, 10:54 AM B K wrote: > Any fix for this yet? > > On Thursday, 18 November 2021 at 20:19:36 UTC+2

[go-nuts] Underscore symbol

2022-11-04 Thread Canuto
Hello everybody, I'm just starting out with go ... I have searched for lights on this string but without success. What does this sign mean " _, err " , what the underscore symbol means here ? func generateSalt() string { randomBytes := make([]byte, 16)

[go-nuts] Re: Unable to create Api | Go Operator | Go issue

2022-11-04 Thread B K
Any fix for this yet? On Thursday, 18 November 2021 at 20:19:36 UTC+2 Dinesh kumar Ramasamy wrote: > I do see the same issue - No fix yet. > > On Monday, November 1, 2021 at 11:30:30 AM UTC-5 Vaishali Gupta wrote: > >> Hello Team >> >> getting below error while using below command >> could you

Re: [go-nuts] fs.Glob, fs.DirWalk, etc. does the pattern support complex regex

2022-11-04 Thread pat2...@gmail.com
Thanks to all who replied. On Friday, November 4, 2022 at 8:47:51 AM UTC-4 Konstantin Khomoutov wrote: > On Thu, Nov 03, 2022 at 01:20:16PM -0700, pat2...@gmail.com wrote: > > > This has to be a FAQ, but my google foo for searching it is not clear > > The docs say: " The syntax of patterns is the

Re: [go-nuts] fs.Glob, fs.DirWalk, etc. does the pattern support complex regex

2022-11-04 Thread Konstantin Khomoutov
On Thu, Nov 03, 2022 at 01:20:16PM -0700, pat2...@gmail.com wrote: > This has to be a FAQ, but my google foo for searching it is not clear > The docs say: " The syntax of patterns is the same as in path.Match." > > The pattern seems to implement only fairly simple search expressions. > > I'd

Re: [go-nuts] Re: about upstream?

2022-11-04 Thread Chris Burkert
I am also not a native speaker, but having a stream/river in mind, then upstream seems to be where the water comes from and downstream where the water is going to. However, the OP mentioned that one micro service called the other which tells me something about how the connection is established,

Re: [go-nuts] Go Crashes on a long running process (with stack trace)

2022-11-04 Thread Konstantin Khomoutov
On Tue, Nov 01, 2022 at 10:14:28AM -0700, Vineet Jain wrote: > We have a long running process that listens to and processes a large number > of network packets. It died today with the following stack trace. Anyone > seen this before, or have any idea what is causing it? > > Nov 01 12:40:30

Re: [go-nuts] godoc and generic code

2022-11-04 Thread Marcel Huijkman
Perhaps update godoc: go install golang.org/x/tools/cmd/godoc@latest On Friday, November 4, 2022 at 7:18:28 AM UTC+1 tapi...@gmail.com wrote: > You may also try Golds: https://github.com/go101/golds. > Still not perfect in handling custom generic things, > but it is generally usable. > > On

Re: [go-nuts] godoc and generic code

2022-11-04 Thread tapi...@gmail.com
You may also try Golds: https://github.com/go101/golds. Still not perfect in handling custom generic things, but it is generally usable. On Friday, November 4, 2022 at 1:26:26 AM UTC+8 Hotei wrote: > Thanks for the very helpful replies. < go doc -all pkg > should meets my > needs for printed