func State()

in hook/state.go [13:24]


func State() (specs.State, error) {
	stdinBytes, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		return specs.State{}, err
	}
	var state specs.State
	err = json.Unmarshal(stdinBytes, &state)
	if err != nil {
		return specs.State{}, err
	}
	return state, nil
}