Re: [go-nuts] Re: Go 1.10 is released

2018-02-19 Thread Johann Höchtl
Am Montag, 19. Februar 2018 14:17:18 UTC+1 schrieb Michel Casabianca: > > Hi Gophers, > > I have updated my list of Go interfaces for this release : > http://sweetohm.net/article/go-interfaces.en.html > > Just came across this very helpful overview (and sorry for hi-jacking the thread). Can gur

[go-nuts] Vgo and reproducable builds

2018-02-26 Thread Johann Höchtl
Right at the beginning of the first post about vgo it is stated: > Versioning will also let us ensure that a program builds exactly the same way > tomorrow as it does today. Even when there are newer versions of my > dependencies, the go command shouldn't start using them until asked. However

[go-nuts] Organizing code with vgo

2018-02-26 Thread Johann Höchtl
When writing go code with one package and one command I would structure it like package.go ./cmd/command1/main.go With package.go being at the root of the workspace and ./cmd/command1/main.go naming an executable which primarily make use of the package. Now I _migh_ have vendored package.go w

[go-nuts] Re: Organizing code with vgo

2018-02-28 Thread Johann Höchtl
As the question might have been to generic -- Suppose I have the following layout: package ( containing a go.mod file) \ command1\ main.go Should vgo be able to create a /vendor/ folder in a sub-directory of a module? When Dockerizing go packages which result in executable commands I think t

[go-nuts] Install vim-go as a pacakge in vim 8

2016-09-18 Thread Johann Höchtl
I installed vim 8 using this ppa ppa:jonathonf/vim (seen on http://tipsonubuntu.com/2016/09/13/vim-8-0-released-install-ubuntu-16-04/) I cloned vim-go according to https://github.com/fatih/vim-go#install (Vim packages, http://vimhelp.appspot.com/repeat.txt.html#packages) The install simply sa

[go-nuts] Re: Install vim-go as a pacakge in vim 8

2016-09-19 Thread Johann Höchtl
Guys, nobody using Vim 8 and the venerable go-vim plugin in Vim 8 as a package? Don't let me down on that! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang

Re: [go-nuts] Install vim-go as a pacakge in vim 8

2016-09-19 Thread Johann Höchtl
Am Montag, 19. September 2016 13:51:17 UTC+2 schrieb Jan Mercl: > > On Sun, Sep 18, 2016 at 10:46 AM Johann Höchtl > wrote: > > > I thought Vim 8 packages are all automatic. vim-go commands like :help > vim-go or :GoUpdateBinaries do not work. > > Are you using th

[go-nuts] Pure golang library to encode N-Quads

2016-11-10 Thread Johann Höchtl
Is there any? I found https://github.com/Callidon/joseki which doesn't seem to support N-Quads and https://github.com/knakk/rdf seems to be incapable to serialize N-Quads. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from th

[go-nuts] Library for NLP: counting word syllables, words, sentences

2016-11-15 Thread Johann Höchtl
Is there a pure Golang library to detect words / sentences / syllables? https://github.com/advancedlogic/go-freeling might be able to do that but has no API. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and sto

[go-nuts] Re: Library for NLP: counting word syllables, words, sentences

2016-11-15 Thread Johann Höchtl
m/neurosnap/sentences" // Sentence segmentation "github.com/speedata/hyphenation" // hyphenation for now but a more integrated library like freeling would be nice to use, for sure. Johann > Daniel > > On Tuesday, November 15, 2016 at 4:16:27 AM UTC-5, Johann Höchtl

[go-nuts] RDF "encoding"

2016-11-27 Thread Johann Höchtl
I am relatively new to RDF. I plan to use https://github.com/knakk/rdf to serialize data I read from CSV Of course it fails to encode invalid IRIs like "example.com/A + B" where I read the information "A + B" from a CSV file. Is there a standard to perform IRIs encoding? Would URL-encoding the

[go-nuts] Using wss with Gorilla github.com/gorilla/websocket

2016-06-19 Thread Johann Höchtl
It was straightforward to get go with Gorilla Websocket. However how can I switch to a secure wss connection now? I am also currently serving from a plain IP without DNS, in order to go wss am I required to have a named address? Thank you! -- You received this message because you are subscrib

[go-nuts] Urlwatch

2016-06-23 Thread Johann Höchtl
Is there any app, library etc. available which will monitor changes to web resources and perform actions afterwards? Something like https://thp.io/2008/urlwatch/ I found https://github.com/dustin/urlwatch but it seems to be broken and not very involved. https://golanglibs.com/top?q=broken Tha

Re: [go-nuts] Urlwatch

2016-06-25 Thread Johann Höchtl
Am Donnerstag, 23. Juni 2016 17:04:54 UTC+2 schrieb Shawn Milochik: > > What do you need it to do, specifically? Doing an http.Get on a page and > storing and comparing the bytes or a hash is something you could write in > under a minute. Why not just do that? > Get notified when a change happ

[go-nuts] Idiomatic way to signal error using websockets

2016-07-07 Thread Johann Höchtl
I am using the gorilla websocket implementation. I am also new to websockets. When I want to signal an error on an http-connection I used http.Error which allwed me to set an http status error code, sets mime type to text/plain an writes an error message to the receiver. How am I supposed to si

Re: [go-nuts] Re: Idiomatic way to signal error using websockets

2016-07-07 Thread Johann Höchtl
your protocol that goes through the websocket. For >> example, the json-rpc protocol has a special error field when an error >> occurs. >> >> >> On Thursday, July 7, 2016 at 10:45:04 AM UTC+3, Johann Höchtl wrote: >>> >>> I am using the gorilla websocke

[go-nuts] What dependency management tool do you use?

2016-07-12 Thread Johann Höchtl
I use godep. There has been lots of rumour lately to use gb. What do others use? If there is a blog post available somewhere comparing the pros and cons, please provide one. I know https://github.com/golang/go/wiki/PackageManagementTools I also like the idea of manul to use git submodules http

[go-nuts] What dependency management tool do you use?

2016-07-24 Thread Johann Höchtl
Instead of thanking all reporters individually I'll do it here. I didn't expect a clear winner but some of the rationales for prefering one dependency mgmt tool over the other became more clear to me. To sum it up: I'll stick with godeps. It seems it hits somewhere the sweetspot between followi

Re: [go-nuts] What dependency management tool do you use?

2016-07-25 Thread Johann Höchtl
On 2016-07-25 12:35, roger peppe wrote: On 24 July 2016 at 13:14, Johann Höchtl wrote: Instead of thanking all reporters individually I'll do it here. I didn't expect a clear winner but some of the rationales for prefering one dependency mgmt tool over the other became more c

[go-nuts] Golang git library able to communicate with LFS?

2016-08-02 Thread Johann Höchtl
Hi, Is there a golang library available which is able to access Git LFS https://github.com/git-lfs/lfs-test-server ? https://github.com/libgit2/git2go ? https://github.com/src-d/go-git ? Thank you, Johann -- You received this message because you are subscribed to the Google Groups "golang-nu

Re: [go-nuts] Golang git library able to communicate with LFS?

2016-08-02 Thread Johann Höchtl
I endpoint, it's not a client library? 2016-08-02 11:42 GMT+02:00 Johann Höchtl >: > > > Hi, > > > > Is there a golang library available which is able to access Git LFS > > https://github.com/git-lfs/lfs-test-server ? > > > > https

[go-nuts] Skeleton of Go Webapp accepting file upload

2017-02-09 Thread Johann Höchtl
Can someone recommend me a skeleton of how to handle file uploads via web browser in Golang? Added Bonus: Drag & Drop would be nice but I understand that this is likely a HTML/Javascript issue. Thank you! -- You received this message because you are subscribed to the Google Groups "golang-nut

[go-nuts] go-swagger dynamic API creation

2017-03-27 Thread Johann Höchtl
The last time I used it swagger was called swagger. Lots has changed since it's OpenAPI. A huge framework evolved around it https://goswagger.io/ I really like the approach of defining the API entirely dynamically in code (and announcements like https://groups.google.com/forum/#!topic/golang-n

[go-nuts] vim-go autocompletion / help for struct members / function parameters

2020-02-10 Thread Johann Höchtl
I have a question about vim-go. Sorry if this is the wrong place, but opening a github issue feels wrong for that. I use vim-go autocompletion (a lot) in companion with gopls. I invoke it manually with ^C^O (omnicomplete) which is tied to gopls. I am not using deoplete. However, what I miss is

[go-nuts] Re: vim-go autocompletion / help for struct members / function parameters

2020-02-16 Thread Johann Höchtl
Anybody? My question was not meant to criticize vim-go or gopls, if they can't (yet) do what I want those tools to support me, but a honest questions if I do not know how to use the tools. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsu

Re: [go-nuts] Re: vim-go autocompletion / help for struct members / function parameters

2020-02-17 Thread Johann Höchtl
Am Montag, 17. Februar 2020 10:22:23 UTC+1 schrieb Jan Mercl: > > On Sun, Feb 16, 2020 at 9:38 AM Johann Höchtl > wrote: > > > > Anybody? My question was not meant to criticize vim-go or gopls, if they > can't (yet) do what I want those tools to support me, but

[go-nuts] Internal Compiler error when building go1.15 using go1.14.4

2020-08-27 Thread Johann Höchtl
Since long I am keeping my go installation up to date by compiling from source. Today on my attempt to update from 1.14.4 to 1.15 I triggered this fatal: GOROOT_BOOTSTRAP=/home/john/opt/go.build/ ./make.bash Building Go cmd/dist using /home/john/opt/go.build/. (go1.14.4 linux/amd64) # runti

[go-nuts] Re: Internal Compiler error when building go1.15 using go1.14.4

2020-09-01 Thread Johann Höchtl
sam.mo...@gmail.com schrieb am Freitag, 28. August 2020 um 09:23:47 UTC+2: > > > On Thursday, August 27, 2020 at 11:38:54 PM UTC-7, Johann Höchtl wrote: >> >> >> Since long I am keeping my go installation up to date by compiling from >> source. Today on my atte

[go-nuts] Workflow and tools for JSON Schema generation

2020-09-03 Thread Johann Höchtl
Hi, I would like to accomplish the following: An existing golang package on github provides a struct definition I am interested in to be used as part of a REST API interface I design 1. I would like to automatically go generate json schema for this struct 2. I would like to incorporate th

Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-05 Thread Johann Höchtl
gt; We successfully use it for many API's in production. >> >> -- Marcin >> >> >> On Thu, Sep 3, 2020 at 12:06 AM Johann Höchtl >> wrote: >> >>> >>> Hi, >>> I would like to accomplish the following: >>> >>> A

[go-nuts] gopls reports "Error loading workspace folders" for every project I have

2020-11-17 Thread Johann Höchtl
I updated to gopls version golang.org/x/tools/gopls v0.5.3 golang.org/x/tools/gopls@v0.5.3 h1:C8QSrqjqaVzlVoHL1R9yWbROoOApRgI8gN1G+cHlPuw= Since then my vim-go plugin but also if I disable vim-go and use vims native lsp-configuration reports Error loading workspace folders (expected 1, g

[go-nuts] Re: gopls reports "Error loading workspace folders" for every project I have

2020-11-24 Thread Johann Höchtl
Anybody running into this issue? Is this triggered from gopls and under what circumstances? Where can I get more help if this is a gopls issue? Johann Höchtl schrieb am Dienstag, 17. November 2020 um 11:29:51 UTC+1: > > I updated to gopls version golang.org/x/tools/gopls

Re: [go-nuts] Modules... why it has to be so painfull?

2021-04-19 Thread Johann Höchtl
This sounds like it would warrant a howto go modules blog post. Thank you for sharing your experience. michael...@gmail.com schrieb am Samstag, 10. April 2021 um 02:20:54 UTC+2: > FWIW, I completely agree with the sentiment that confusing documentation > has created pain and unnecessary difficu

[go-nuts] Re: Generics and parentheses

2021-05-17 Thread Johann Höchtl
watso...@gmail.com schrieb am Mittwoch, 15. Juli 2020 um 04:44:53 UTC+2: > Guillamets are worth consideration. They are common on European keyboards > and avoid all the syntax ambiguities. > > > They are common in the french-speaking part of europe. Even the OPs statement > A typical computer k

[go-nuts] Go2 Playground and constraints package

2021-11-15 Thread Johann Höchtl
The example from https://github.com/mattn/go-generics-example/blob/main/constraints-chan/main.go does not work with the Go2 Playground https://go2goplay.golang.org/p/Is-IieENirk as the constraints package is not available. I didn't find any mention on that on the Internets, is this a known limita

Re: [go-nuts] Go2 Playground and constraints package

2021-11-16 Thread Johann Höchtl
t; prototype implementation, instead of gotip. > You can use https://gotipplay.golang.org/ which provides a playground > based on gotip. Though the example does not work there either, as > `constraints.Chan` has been removed after > https://github.com/golang/go/issues/48424. > > On Tue,

[go-nuts] go get with Azure Devops on premise?

2022-11-11 Thread Johann Höchtl
Hi, we are using Azure Devops server Version Azure DevOps Server 2020 Update 1.1 on premise. The server is not accessible from the internet. The web server uses integrated authentication for access. Browsing a git repository from a web browser looks like this: https://servername.yada.yada/tfs/Co

[go-nuts] custom slog Handler which adds Attribute and WithGroup

2023-10-05 Thread Johann Höchtl
I created a custom slog Handler which adds an attribute eventId which is a GUID A NewLogger function returns that logger wrapped into a group: Every further key-value provided should go into that group. Unfortunately the eventId also gets promoted into that group although it should be at the p

[go-nuts] Re: custom slog Handler which adds Attribute and WithGroup

2023-10-23 Thread Johann Höchtl
ReplaceAttr-Function: The ReplaceAttr-Function sees the root level addded eventID only untill a call to .WithGroup, then the eventId is no longer available within the ReplaceAttr-Function Any help? Johann Höchtl schrieb am Donnerstag, 5. Oktober 2023 um 17:59:30 UTC+2: > I created a cus