1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-10 23:45:42 +00:00
arikawa/utils/json/option/option.go

7 lines
338 B
Go
Raw Normal View History

2020-05-11 01:14:46 +00:00
// Package option provides the ability to create omittable primitives.
2020-05-13 00:09:43 +00:00
// This is accomplished by pointerrizing common primitive types so that they may
// assume a nil value, which is considered as omitted by encoding/json.
// To generate pointerrized primitives, there are helper functions NewT() for
// each option type.
2020-05-11 01:14:46 +00:00
package option