-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'style-exported-symbols' into mega-integration-branch
- Loading branch information
Showing
2 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package basicnode | ||
|
||
// Style embeds a NodeStyle for every kind of Node implementation in this package. | ||
// You can use it like this: | ||
// | ||
// basicnode.Style.Map.NewBuilder().BeginMap() //... | ||
// | ||
// and: | ||
// | ||
// basicnode.Style.String.NewBuilder().AssignString("x") // ... | ||
// | ||
// Most of the styles here are for one particular Kind of node (e.g. string, int, etc); | ||
// you can use the "Any" style if you want a builder that can accept any kind of data. | ||
var Style style | ||
|
||
type style struct { | ||
Any Style__Any | ||
Map Style__Map | ||
List Style__List | ||
Bool Style__Bool | ||
Int Style__Int | ||
Float Style__Float | ||
String Style__String | ||
Bytes Style__Bytes | ||
Link Style__Link | ||
} |