Azure Functions - Golang App setting with array value

Guy Dillen 116 Reputation points
2023-06-27T17:28:44.74+00:00

Hi,

I need an array value as an app setting in my Golang/ Custom Handler function.

I could define an environment variable and add a comma separated string with the values.

Are there eventually other options for custom handlers (Golang)?

Thanks.

Guy

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

Answer accepted by question author
  1. MuthuKumaranMurugaachari-MSFT 22,446 Reputation points Moderator
    2023-06-27T20:32:42.9633333+00:00

    Guy Dillen Thank you for posting your question in Microsoft Q&A. For representing an array in app setting, you can use 0 based configuration with set of elements like described here. I found a similar discussion in SO thread which would help in your scenario.

    If you face any issues, share the code snippet and .json values or app setting values that will help in understanding it better.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.