Skip to content

[Feature]: Review ValueAsString return logic #106

@jordipuigbou

Description

@jordipuigbou

What is your suggestion?

Review ValueAsString return logic when required value is not found. Different values are returned when not found.
Example:

	URL := golium.ValueAsString(ctx, "[CONF:url]")
	if URL == "<nil>" {
		URL = golium.ValueAsString(ctx, "[CTXT:url]")
	}
	if URL == "%nil%" {
		return "", fmt.Errorf("url shall be initialized in Configuration or Context")
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions