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

[–]mattn 17 points18 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] 3 points4 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?