pyenvとHomebrewの互換性の問題(?)を消した

brew doctorしたら、*-configというスクリプトが、パスに通っているとダメと怒られる。 この場合は、pyenvのスクリプトが、NGらしい。

 $ brew doctor
 Warning: "config" scripts exist outside your system or Homebrew directories.
 `./configure` scripts often look for *-config scripts to determine if
 software packages are installed, and what additional flags to use when
 compiling and linking.

 Having additional scripts in your path can confuse software installed via
 Homebrew if the config script overrides a system or Homebrew provided
 script of the same name. We found the following "config" scripts:
    /Users/ryu/.pyenv/shims/python-config
    /Users/ryu/.pyenv/shims/python2-config
    /Users/ryu/.pyenv/shims/python2.7-config
    /Users/ryu/.pyenv/shims/python3-config
    /Users/ryu/.pyenv/shims/python3.4-config
    /Users/ryu/.pyenv/shims/python3.4m-config

そこで、こちらを参考に、

qiita.com

以下を.zshrcに追加したら、消えた。

alias brew="env PATH=${PATH/${HOME}\/\.pyenv\/shims:/} brew"

gomobile: unsupported, direct named type...

あぁ、構造体なんて使うんじゃなかった。

gomobileで、iOSAndroid向けのライブラリを作成しようとして、
構造体を返すメソッドを公開しようとしたら、こんなエラーがでて、悲しくなった。

早く対応しておくれ。

type Session struct {
	JsessionId string
	SessionId string
}

func GetSession(userId string, password string) (session Session, err error) {

	...

	return Session{JsessionId: "1234567890"}, nil

}