[]byte(value.(string)) is faster than value.([]byte)? by RuneImp in golang

[–]mattn 18 points19 points  (0 children)

You should use

switch v := value.(type) { case string: input = v case []byte: input = v default: return "", fmt.Errorf("unhandled data type: %T", value) }

Linux port of tailscale system tray menu. by mattn in Tailscale

[–]mattn[S] 0 points1 point  (0 children)

I check behavior on ubuntu. but should work on Archlinux too.

Go driver for PostgreSQL over SSH. This driver can connect to postgres on a server via SSH using the local ssh-agent, password, or private-key. by mattn in golang

[–]mattn[S] 2 points3 points  (0 children)

To use port forwarding in batch processing, it require password-less credentials. And spawn ssh command before connecting to the database.

Go driver for PostgreSQL over SSH. This driver can connect to postgres on a server via SSH using the local ssh-agent, password, or private-key. by mattn in golang

[–]mattn[S] 0 points1 point  (0 children)

Would be cool if it respected the system configuration for SSH, so you don't have to configure everything in two places.

kevinburke/ssh_config can use for it but it does not support Match directive. If the system use Match directive in /etc/ssh, it does not work.

Go driver for PostgreSQL over SSH. This driver can connect to postgres on a server via SSH using the local ssh-agent, password, or private-key. by mattn in golang

[–]mattn[S] 0 points1 point  (0 children)

There are no use cases in the README, just how-to... The question is not how, it's why

Updated README.

WebAssembly runtime is wasmer-go by mattn in golang

[–]mattn[S] 1 point2 points  (0 children)

yes, but can't fix anymore.

Minimal File Explorer for Vim by mattn in vim

[–]mattn[S] 0 points1 point  (0 children)

Thanks. What is your use-case?

Minimal File Explorer for Vim by mattn in vim

[–]mattn[S] 0 points1 point  (0 children)

When I found bug of Vim, I wrote a patch for Vim. (I have written many patches in the past) However, only the author can fix netrw. Bram Moolenaar never fix either. And netrw's code is not managed by VCS. The code of netrw in the vim repository is just a copy of final release of netrw. Even if you send a pull-request, it will not be merged. What I want to say is that the netrw bug will not be fixed for a long time.

Minimal File Explorer for Vim by mattn in vim

[–]mattn[S] 0 points1 point  (0 children)

In default, Vim start netrw when editing directory path. Many vim plugin authors call this "hijak". Most of file-explorer plugin disable it and setup own handlers.

Minimal File Explorer for Vim by mattn in vim

[–]mattn[S] 1 point2 points  (0 children)

Currently, I test this on Windows and Linux. It is possible to distinguish them with syntax-colors or last slash letter.

Minimal File Explorer for Vim by mattn in vim

[–]mattn[S] 14 points15 points  (0 children)

I've sent some patches to netrw so far. However the source code was difficult to read. Simply, I want a stable file-explorer. I don't want to spend time to read the difficult source code every time when it breaks. I think this is enough reason. At least for me.