[go-nuts] GO API to upload a directory in the github

2022-09-27 Thread PK
HI Everyone, I want to write an go script, to upload a folder in the github. Can anyone please let How I can do this. Is there any resources available for this. Please help me in this. Eg: I have a temp folder in my local machine, I want to upload it to one of the github repo. -- You received

Re: [go-nuts] Sets

2022-09-27 Thread robert engels
I do not. A lot depends on if you want to use optional methods which is difficult in Go, but many have given plenty of starting ideas. type Collection interface { Contains(e E) bool // may be slow, requiring a scan Iterator() ElementIterator[E] } type Set interface { // simply a marker

Re: [go-nuts] Sets

2022-09-27 Thread Ian Davis
On Tue, 27 Sep 2022, at 6:57 PM, Robert Engels wrote: > The github set issue is impossible to follow without using github. > > Please simply define the interfaces. The implementations will follow. > You can have simple iterators, indexed iterators, map (key/value) > iterators, errorable

[go-nuts] Sets

2022-09-27 Thread Robert Engels
The github set issue is impossible to follow without using github. Please simply define the interfaces. The implementations will follow. You can have simple iterators, indexed iterators, map (key/value) iterators, errorable iterators, closable iterators. You can define how to provide/adapt

Re: [go-nuts] imported and not used "errors"

2022-09-27 Thread Kurtis Rader
I find the Gin documentation (and the examples provided by the project) to be, ahem, lacking in important details. As you can see from the source ( https://github.com/gin-gonic/gin/blob/78dad9d77d8c2d679dedea1fbef5fc8a54372efd/gin.go#L372) the Run() function returns an error that will tell you

Re: [go-nuts] imported and not used "errors"

2022-09-27 Thread Steven Hartland
Something is already running on localhost port 8080. use a different port. On Tue, 27 Sept 2022 at 16:15, Conor O'Neill wrote: > I am following a tutorial to great an API in Go with a framework called > Gin. > > I have imported errors and created a function like so; > > func createBook(c

[go-nuts] imported and not used "errors"

2022-09-27 Thread Conor O'Neill
I am following a tutorial to great an API in Go with a framework called Gin. I have imported errors and created a function like so; func createBook(c *gin.Context) { var newBook book if err := c.BindJSON(); err != nil { return } books = append(books, newBook)

[go-nuts] Re: Go Get Issues

2022-09-27 Thread Christoph Berger
You are right, when changing import paths, related info (go.mod contents in this case) need to be updated as well. This was missing from my answer, thanks for catching that. Glad to hear that go-getting the private module works after including the VCS extension. On Monday, September 26, 2022