Skip to content

text.ResolveFile #29

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions