| PACKAGE |
| |
| package gojsonreference |
| import "encoding/json/jsonreference" |
| |
| |
| TYPES |
| |
| type JsonReference struct { |
| HasFullUrl bool |
| HasUrlPathOnly bool |
| HasFragmentOnly bool |
| HasFileScheme bool |
| // contains filtered or unexported fields |
| } |
| |
| func NewJsonReference(jsonReferenceString string) (JsonReference, error) |
| |
| func (r *JsonReference) GetPointer() *gojsonpointer.JsonPointer |
| |
| func (r *JsonReference) GetUrl() *url.URL |
| |
| func (r *JsonReference) Inherits(child JsonReference) (*JsonReference, error) |
| Creates a new reference from a parent and a child If the child cannot |
| inherit from the parent, an error is returned |
| |
| func (r *JsonReference) String() string |
| |
| |