code: func fromBoolArgs(args []interface{}) ([]byte, error) {
  	if len(args) != 1 {
  		return nil, fmt.Errorf("must provide only a single argument")
  	}
  
  	if val, ok := args[0].(bool); !ok {
  		return nil, fmt.Errorf("argument must be a boolean type: %#v", args[0])
  	} else if val {
  		return []byte{1}, nil
  	}
  
  	return []byte{0}, nil
  }
docs: // fromBoolArgs is a helper that expects only a single boolean argument and
  // returns a single length byte array containing either a one or zero depending
  // on whether the passed input is true or false respectively.