Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Q quickfix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • quickfixgo
  • quickfix
  • Merge requests
  • !433

add ParseSrc function so the source of the datadict doesn't have to be a filepath.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ruben de Vries requested to merge github/fork/prvbl/datadict-from-src into master Feb 10, 2021
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

instead of having to provide a path it would be nice if we could provide the src ourselves, as this allows embedding the src into the binary, for example with go:embed added in go 1.16 :)

this seems to be the simplest way of making this possible without having to expose the builder and allows anyone to provide the source of the datadict in any way they like as a simple bytes.NewBuffer([]byte{}) or with anything else that provides a io.Reader!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/prvbl/datadict-from-src