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

[TC] [PTR] Add a 'From' function

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Trivial
    • master
    • master
    • tools-common
    • None
    • 0

    Description

      What's the issue?
      We have a ptr.To function, we should have a ptr.From function.

      What's the fix?
      It should behave like the AWS SDK and return the default value if the pointer is nil.

      Why?
      We don't want to pull in the AWS SDK where it's not required just so we can use some of it's utility functions.

      Attachments

        Issue Links

          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:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty