A simple ini
parser.
Copied from github.com/aws/aws-sdk-go-v2 internal/ini.
This code is copyright Amazon.com, Inc. and licensed under Apache 2.
This code is copied from commit c62ec38df6cc8e66ecf014365d8bd15c2599bc6d.
The purpose of this copy is to expose the INI parser that aws-sdk-go-v2 uses. By exposing it, an aws.CredentialProvider can be built which has the same legacy behavior as aws-sdk-go's credentails.NewSharedCredentials, where the INI file is loaded with very minimal processing and there must be an explicit section corresponding to the profile and having aws_access_key_id and aws_secret_access_key fields set.
Putting this copied code in a separate repository keeps provenance, licensing and copyright cleaner.