Created
December 12, 2015 08:29
-
-
Save bitxel/bc9d786675160dfc022e to your computer and use it in GitHub Desktop.
Bulk call func in stucts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Come from golang.org/x/crypto/ssh/session.go:353 | |
type F func(*Session) | |
for _, setupFd := range []F{(*Session).stdin, (*Session).stdout, (*Session).stderr} { | |
setupFd(s) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment