From 151f3d74ebb921655b1944dac191826c9224b0a8 Mon Sep 17 00:00:00 2001
From: Jade Clarke
Date: Mon, 21 Jun 2021 11:49:59 -0400
Subject: [PATCH] Making DefaultSection modifyable to handle aws profile
default.
---
deprecated.go | 8 +++-----
ini.go | 8 ++++----
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/deprecated.go b/deprecated.go
index e8bda06..20aba88 100644
--- a/deprecated.go
+++ b/deprecated.go
@@ -14,12 +14,10 @@
package ini
-const (
- // Deprecated: Use "DefaultSection" instead.
- DEFAULT_SECTION = DefaultSection
-)
-
var (
// Deprecated: AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE.
AllCapsUnderscore = SnackCase
+
+ // Deprecated: Use "DefaultSection" instead.
+ DEFAULT_SECTION = DefaultSection
)
diff --git a/ini.go b/ini.go
index 23f0742..c341909 100644
--- a/ini.go
+++ b/ini.go
@@ -25,15 +25,15 @@ import (
)
const (
- // DefaultSection is the name of default section. You can use this constant or the string literal.
- // In most of cases, an empty string is all you need to access the section.
- DefaultSection = "DEFAULT"
-
// Maximum allowed depth when recursively substituing variable names.
depthValues = 99
)
var (
+ // DefaultSection is the name of default section. You can use this var or the string literal.
+ // In most of cases, an empty string is all you need to access the section.
+ DefaultSection = "DEFAULT"
+
// LineBreak is the delimiter to determine or compose a new line.
// This variable will be changed to "\r\n" automatically on Windows at package init time.
LineBreak = "\n"