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

Fix go formatting issue, fix typo #6

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func (e *MarshalerError) Error() string {
//
// Examples of struct field tags and their meanings:
//
// // Field appears in INI as key "myName".
// Field int `ini:"myName"`
// // Field appears in INI as key "myName".
// Field int `ini:"myName"`
deining marked this conversation as resolved.
Show resolved Hide resolved
//
// // Field is ignored by this package.
// Field int `ini:"-"`
// // Field is ignored by this package.
// Field int `ini:"-"`
//
// Boolean values encode as the string literal "true" or "false".
//
Expand Down Expand Up @@ -96,7 +96,7 @@ func Marshal(v interface{}) ([]byte, error) {
// encode reflects on the values of rv, encoding them as INI data. If rv is not
// a pointer to a struct, an error is returned. encode makes two passes over
// the struct fields of rv. The first pass skips struct fields that are
// themselve structs, encoding all struct fields as "global" INI properties.
// themselves structs, encoding all struct fields as "global" INI properties.
// The second pass then encodes each struct field that *is* a struct as an
// INI section.
func encode(buf *bytes.Buffer, rv reflect.Value) error {
Expand Down