// GetString retrieves a string parameter.
GetString retrieves a string parameter.
// GetString retrieves a string parameter .
func (s State) GetString(path string) (string, error) {
	v, err := s.Get(path)
	if err != nil {
		return "", err
	}
	if s, ok := v.(string); ok {
		return s, nil
	}
	return "", fmt.Errorf("cannot convert %q to string", v)
}
func ( s State ) GetString ( path string ) ( string , error ) { v , err := s . Get ( path ) if err != nil { return " " , err } if s , ok := v . ( string ) ; ok { return s , nil } return " " , fmt . Errorf ( " " , v ) }
GetString retrieves a string parameter.
GetString retrieves a string parameter .