Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52458

[TC] Extend the 'envvar' library to be more useful

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • Morpheus
    • tools-common
    • None
    • 1

    Description

      What's the issue?
      The 'envvar' library is useful, but it could be more powerful. As an example, we could have a function such as:

      func GetOrDefault[T any](fn func(varName string) (T, error), def T) (T, error)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty