Skip to content

text.ResolveFile #29

@moshloop

Description

@moshloop

Resolve a string into a string using the following rules:

  • If it is a valid Path and exists, return the contents of file(s)
    * If not exists return an error
  • If a valid go-getter URL, go-get it
  • Else return the contents of the string
func ResolveFile(file string) (string, error) 
func ResolveFiles(files string) (map[string]string, error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions