Skip to content

Commit

Permalink
Changed the DefaultSection constant to a variable so that it may be a…
Browse files Browse the repository at this point in the history
…ltered for use with aws cli configs.
  • Loading branch information
jade-clarke committed Jun 30, 2022
1 parent 386cf30 commit 3493201
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions deprecated.go
Expand Up @@ -14,12 +14,9 @@

package ini

const (
var (
// Deprecated: Use "DefaultSection" instead.
DEFAULT_SECTION = DefaultSection
)

var (
// Deprecated: AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE.
AllCapsUnderscore = SnackCase
)
8 changes: 4 additions & 4 deletions ini.go
Expand Up @@ -23,15 +23,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"
Expand Down

0 comments on commit 3493201

Please sign in to comment.