Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text.ResolveFile #29

Open
moshloop opened this issue Mar 7, 2021 · 0 comments
Open

text.ResolveFile #29

moshloop opened this issue Mar 7, 2021 · 0 comments

Comments

@moshloop
Copy link
Member

moshloop commented Mar 7, 2021

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)
@moshloop moshloop added the good first issue Good for newcomers label Mar 7, 2021
mrinalwahal pushed a commit to mrinalwahal/commons that referenced this issue Sep 10, 2022
@mrinalwahal mrinalwahal mentioned this issue Sep 10, 2022
@moshloop moshloop removed the good first issue Good for newcomers label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant