@@ -84,6 +84,8 @@ func main() {
8484- [ Cryptor] ( #user-content-cryptor )
8585- [ Datetime] ( #user-content-datetime )
8686- [ Datastructure] ( #user-content-datastructure )
87+ - [ EventBus] ( #user-content-eventbus )
88+ - [ Enum] ( #user-content-enum )
8789- [ Fileutil] ( #user-content-fileutil )
8890- [ Formatter] ( #user-content-formatter )
8991- [ Function] ( #user-content-function )
@@ -766,7 +768,7 @@ import "github.com/duke-git/lancet/v2/eventbus"
766768 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/eventbus.md#SetErrorHandler )]
767769 [[ play] ( https://go.dev/play/p/gmB0gnFe5mc )]
768770
769- <h3 id =" eventbus " > 10. Package enum provides a simple enum implementation.   ;   ;   ;   ; <a href =" #index " >Index</a ></h3 >
771+ <h3 id =" enum " > 10. Package enum provides a simple enum implementation.   ;   ;   ;   ; <a href =" #index " >Index</a ></h3 >
770772
771773``` go
772774import " github.com/duke-git/lancet/v2/enum"
@@ -789,43 +791,43 @@ import "github.com/duke-git/lancet/v2/enum"
789791- ** <big >Valid</big >** : Checks if the enum item is valid. If a custom check function is provided, it will be used to validate the value.
790792 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Valid )]
791793 [[ play] ( https://go.dev/play/p/pA3lYY2VSm3 )]
792- - ** <big >MarshalJSON</big >** : Implementation of json.Marshaler interface.</ p >
794+ - ** <big >MarshalJSON</big >** : Implementation of json.Marshaler interface.
793795 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#MarshalJSON )]
794796 [[ play] ( https://go.dev/play/p/zIZEdAnneB5 )]
795- - ** <big >NewRegistry</big >** : Creates a new enum registry..</ p >
797+ - ** <big >NewRegistry</big >** : Creates a new enum registry.
796798 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#NewRegistry )]
797799 [[ play] ( https://go.dev/play/p/ABEXsYfJKMo )]
798- - ** <big >Add</big >** : Adds enum items to the registry.</ p >
800+ - ** <big >Add</big >** : Adds enum items to the registry.
799801 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Add )]
800802 [[ play] ( https://go.dev/play/p/ABEXsYfJKMo )]
801- - ** <big >Remove</big >** : Removes an enum item from the registry by its value.</ p >
803+ - ** <big >Remove</big >** : Removes an enum item from the registry by its value.
802804 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Remove )]
803805 [[ play] ( https://go.dev/play/p/dSG84wQ3TuC )]
804- - ** <big >Update</big >** : Updates the name of an enum item in the registry by its value.</ p >
806+ - ** <big >Update</big >** : Updates the name of an enum item in the registry by its value.
805807 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Update )]
806808 [[ play] ( https://go.dev/play/p/Ol0moT1J9Xl )]
807- - ** <big >GetByValue</big >** : Retrieves an enum item by its value.</ p >
809+ - ** <big >GetByValue</big >** : Retrieves an enum item by its value.
808810 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#GetByValue )]
809811 [[ play] ( https://go.dev/play/p/niJ1U2KlE_m )]
810- - ** <big >GetByName</big >** : Retrieves an enum item by its name.</ p >
812+ - ** <big >GetByName</big >** : Retrieves an enum item by its name.
811813 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#GetByName )]
812814 [[ play] ( https://go.dev/play/p/49ie_gpqH0m )]
813- - ** <big >Items</big >** : Returns a slice of all enum items in the registry.</ p >
815+ - ** <big >Items</big >** : Returns a slice of all enum items in the registry.
814816 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Items )]
815817 [[ play] ( https://go.dev/play/p/lAJFAradbvQ )]
816818- ** <big >Contains</big >** : Checks if an enum item with the given value exists in the registry.</p >
817819 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Contains )]
818820 [[ play] ( https://go.dev/play/p/_T-lPYkZn2j )]
819- - ** <big >Size</big >** : Returns the number of enum items in the registry.</ p >
821+ - ** <big >Size</big >** : Returns the number of enum items in the registry.
820822 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Size )]
821823 [[ play] ( https://go.dev/play/p/TeDArWhlQe2 )]
822- - ** <big >Range</big >** : Iterates over all enum items in the registry and applies the given function.</ p >
824+ - ** <big >Range</big >** : Iterates over all enum items in the registry and applies the given function.
823825 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Range )]
824826 [[ play] ( https://go.dev/play/p/GPsZbQbefWN )]
825- - ** <big >SortedItems</big >** : Returns a slice of all enum items sorted by the given less function.</ p >
827+ - ** <big >SortedItems</big >** : Returns a slice of all enum items sorted by the given less function.
826828 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#SortedItems )]
827829 [[ play] ( https://go.dev/play/p/tN9RE_m_WEI )]
828- - ** <big >Filter</big >** : Returns a slice of enum items that satisfy the given predicate function.</ p >
830+ - ** <big >Filter</big >** : Returns a slice of enum items that satisfy the given predicate function.
829831 [[ doc] ( https://github.com/duke-git/lancet/blob/main/docs/en/api/packages/enum.md#Filter )]
830832 [[ play] ( https://go.dev/play/p/uTUpTdcyoCU )]
831833
0 commit comments