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
export VENV_HOME=~/.venvs | |
export VENV_PYTHON=/usr/bin/python3.6 | |
fn_workon() { | |
if [ -f "${VENV_HOME}/${1}/bin/activate" ]; then | |
export VENV_CURRENT="${VENV_HOME}/${1}" | |
# Run commands before activation | |
if [ -f "${VENV_CURRENT}/pre_activate.sh" ]; then | |
. "${VENV_CURRENT}/pre_activate.sh" | |
fi |
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
package main | |
import "fmt" | |
import "bufio" | |
import "os" | |
func main() { | |
f, _ := os.Create("outputgo.txt") | |
reader := bufio.NewReader(os.Stdin) | |
for { | |
line, err := reader.ReadString('\n') |