Skip to content

unki2aut/go-xsd-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-xsd-types

XML Schema Definition Primitive Types for GO

Example

type MyStruct struct {
	Duration *Duration `xml:"duration,attr"`
	DateTime *DateTime `xml:"dateTime,attr"`
}

val := MyStruct{}

err := xml.Unmarshal([]byte(`<node
 duration="PT1S"
 dateTime="2015-09-07T05:45:54">
</node>`), &val)

fmt.Println(val.Duration, val.DateTime)

About

XML Schema Definition Primitive Types for GO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages