Skip to content

Commit

Permalink
adding some missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Nov 4, 2018
1 parent 1f6e977 commit 1d5f92e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ident.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ func toParts(s string) []string {
var _ encoding.TextUnmarshaler = &Ident{}
var _ encoding.TextMarshaler = &Ident{}

//UnmarshalText unmarshalls byte array into the Ident
func (i *Ident) UnmarshalText(data []byte) error {
(*i) = New(string(data))
return nil
}

//MarshalText marshals Ident into byte array
func (i Ident) MarshalText() ([]byte, error) {
return []byte(i.Original), nil
}
1 change: 1 addition & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package flect

//Version holds Flect version number
const Version = "v0.0.1"

0 comments on commit 1d5f92e

Please sign in to comment.