github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/matn/word-suggestion.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package matn 4 5 import ( 6 "../time" 7 "../ganjine" 8 lang "../language" 9 ) 10 11 const wordSuggestionStructureID uint64 = 2096939569836997748 12 13 var wordSuggestionStructure = ds.DataStructure{ 14 ID: 2096939569836997748, 15 IssueDate: 1599286551, 16 ExpiryDate: 0, 17 ExpireInFavorOfURN: "", // Other structure nme 18 ExpireInFavorOfID: 0, // Other StructureID! Handy ID or Hash of ExpireInFavorOf! 19 Status: protocol.Software_PreAlpha, 20 Structure: WordSuggestion{}, 21 22 Name: map[protocol.LanguageID]string{ 23 protocol.LanguageEnglish: "WordSuggestion", 24 }, 25 Description: map[protocol.LanguageID]string{ 26 protocol.LanguageEnglish: " store the hash index data by 32byte key and any 32byte value", 27 }, 28 TAGS: []string{ 29 "", 30 }, 31 } 32 33 // WordSuggestion is standard structure to store any hash byte index!! 34 // It is simple secondary index e.g. hash("user@email.com") 35 type WordSuggestion struct { 36 id [32]byte 37 start int 38 end int 39 surface string 40 class uint8 41 features []string 42 }