Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making DefaultSection modifyable to handle aws profile default. #293

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions deprecated.go
Expand Up @@ -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
)
8 changes: 4 additions & 4 deletions ini.go
Expand Up @@ -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"
Expand Down