Go Generics? 1.18 ?? ???? ??-??? ?? ?? ??? ???? ? ?????. 1. ?? ?? printslice [t [] t)? [] int ?? [] ???? ?? ?? ??? ????? ?? ? ? ????. 2. ?? ?? ?? ??? ?? int ? float? ?? ?? ???? ????? ?? [t ??] (slice [] t) t ??? ??? ??????. 3. ?? ?? ?? ?? [t] ??? {value t}? ?? ?? ?? ????? Newbox [t] (v t) *box [t] ???? ?? ??? ? ????. 4. ????? [t]? ????? ???? ?? ?? (v t)? ???? [t]? ??? ????. 5. ?? ?? ?? ?? ??? value [k ?? ??, v any] (m ? [k] v, value v) bool? ?????. bool ?? ?? ?? ??? ??? ???? K? ???????. 6. ?? ?? ?? ?? [k ?? ??, v any] struct {data map [k] v}? ?? ?? ?? ????? ??-?? ? ? ???? ?????? ?? ? GET ??? ?????. ???? ?? ?? ??, ?? ? ?? ??? ?? ?? ??? ? ? ??? ?? ??? ??? ???? ??????.
GO 1.18 ?? ????? ??????,?? ?? ?? ??? ?? ? ??? ???? ?? ? ??? ??? ??? ? ????. ??? ??? ???? ???? ??? ??? ???? ? ????? ? ?? ???? GO ?? ?? ???.

? 1. ?? ?? : PrintSlice[T any]
[]int
? []string
?? ?? ??? ???? ??? ????? ???? ??? ??? ? ????.
func printslice [t any] (s [] t) { _, v : = ?? s { fmt.print (v, "") } fmt.println () } // ?? printslice ([] int {1, 2, 3}) // ?? : 1 2 3 printslice ([] string { "a", "b"}) // ?? : ab
-
[T any]
?? ????T
? ?? ?? ? ? ??? ?????. -
any
interface{}
? ?? ???? ?? ??? ????.
? 2. ?? ?? : ?? ?? ?? (??)
?? ?? ? ???? ??? ????? ?? ??? ?? ? ? ????.

?? ?? ????? { int | int32 | int64 | float32 | ??? 64 } func sum [t number] (slice [] t) t { var ? t _, v : = ?? ???? { ? = v } ?? ?? } // fmt.println? ????? (sum ([] int {1, 2, 3})) // 6 fmt.println (sum ([]] float64 {1.1, 2.2}) // 3.3
-
Number
?|
???? ????? ????? Union ?? (Union)? ?????, ??T
??? ?? ? ?? ?????. - ??? ???
string
??struct
?? ???? ??????.
? 3. ?? ??
?? ??? ?? ?? ? ??? ?? Box
????? ??????.
?? ?? [t anye] struct { ?? t } func newbox [t any] (v t) *box [t] { return & box [t] {value : v} } // intbox ?? : = newbox (42) strbox : = newbox ( "Hello") fmt.println (intbox.value) // 42 fmt.println (strbox.value) // ?????
-
Box[T]
? ???? ?????. -
NewBox
??? ???? ???? ???? ??????.
? 4. ?? ??
?? ??? ??? ?? :

func (b *box [t]) set (v t) { B. ? = v } func (b *box [t]) get () t { B. ?? ????? } // ?? ?? : = Newbox (100) Box.Set (200) fmt.println (box.get ()) // 200
??? ??? ?? Box[T]
? ??? ??? [T]
?? ? ??? ????.
? 5. ??? ? ? : ? ?? ?????
?? ?? ????? ?? ?? ?? ??? ??????.
FUNC? Value [k ?? ??, V an] (m ? [k] v, value v) bool { _, v : = ?? m { V == value {If value { ??? ?????? } } ??? ?????? } // m : = map [string] int { "a": 1, "b": 2} ?? fmt.println (containSvalue (m, 2)) // true fmt.println (containSvalue (m, 3)) // false
-
K comparable
: ?? ??? ??? ? ?????? (? : ???, int, struct ?). -
V any
: ?? ?? ?? ? ? ????. - ?? ?? ?? ??? ??? ?????.
? 6. ?? ?? ???? : ?? ??
???? ???? ??? ?? ??? ??? ? ????.
?? ?? [k ???, v any] struct { ??? ? [k] v } func newCache [k ???, v any] () *?? [k, v] { return & cache [k, v] { ??? : make (map [k] v), } } func (c *cache [k, v]) set (key k, value v) { c.data [key] = ? } func (c *?? [k, v]) get (key k) (v, bool) { v, ok : = c.data [?] ?? v, OK }
??:
?? : = NewCache [String, int] () cache.set ( "???", 100) val, ok : = cache.get ( "???"); ??? { fmt.println ( "count :", val) }
?? : ???? ?? ??
- ?? ?? ??? ?????
[T any]
??[T Constraint]
??????. -
comparable
?? ??? ?? (?? ?, == ?? ?)? ?? ?? ?? ? ?? ?????. - Union ?? (
|
)? ?? ???? ?? ? ? ????. - ???? ??? ????? ??, ??-???? ?? ??? ????.
????? ?? ??. Go Generics? ???? ???? ??? ???? ???? ?????. ?? ???? ??? ?? ???? ???? ? ?? ?? ??? ??? ????? ??? ????.
? ??? ?? ????? ????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Maven? Java ???? ?? ? ????? ?? ?????. ?? POM.XML? ???? ???? ??, ??? ??, ?? ??? ??? ??? ? ???? ??? ?????? ??? ????. 1. pom.xml? ???? groupId, artifactid, ?? ? ???? ??????. 2. MVNClean, ???, ???, ???, ?? ? ??? ?? ??? ?? ??; 3. ??? ?? ? ??? ???? ?? ??? ?? ? ??? ?????. 4. ?? ?? ???? ??? ?? ??? ?? ????? ???? ?? POM? ?? ???? ?????. 5.

setupamaven/gradleProjectwithJax-rsddependencies likejersey; 2. createarestresourceUsingAnnotationsSuchas@pathand@get;

Java? ???? ?? ?? ????? MessageDigest ???? ?? ??? ? ????. 1. MD5 ?? SHA-256? ?? ??? ????? ????? ?????. 2. ??? ? ???? ????? .update () ???? ??????. 3. ?? ??? ??? ???? .digest () ???? ??????. 4. ??? ??? ??? ?? 16 ?? ???? ?????. ? ??? ?? ??? ?? ??? ?? .update ()? ?? ? ??????. ??? ???? ?? MD5 ?? SHA-1 ?? SHA-256? ???? ?? ????.

??, ??, ?? ??, ?? ???? ? ???? ??? ?? ??? ?? ?? ??? ?????. 2. ???, ?? ???, ?? ?? ? ? ?? ?? ? ?? ???? ???? SHA-256 ?? ?? ? ?? ?? ??? ?????. 3. ?? ??? ???? ?? ??? ????, ??? ??? ?????, ? ??? ???? ??? ???? ???? ?? ?? ?? ???? ??????. 4. ?? ??? ?? ??? ???? ???? ??? ??? ??? ???? ?? ?? ??? ??????. 5. ??? ?? ???? ???? ??, P2P ????, ??? ??, RESTAPI ? ??? ???; 6. ?? ?? ????? HyperledgerFabric, Web3J ?? Corda? ?? Java ?? ?? ?????? ??? ? ????.

@Property Decorator? ??? ??, ?? ? ?? ??? ???? ?? ???? ???? ???? ? ?????. 1. ?? ?? : @property? ?? ?? ?? ??? ????, ?? ?? ??? ???? ???? ?? ????? ??; 2. ?? ?? : @name.setter ? @name.deleter? ???? ?? ?? ?? ? ?? ??? ?????. 3. ?? ?? ???? : BankAccount? ?? ???? ??? ??? ???? ??? ??? ??? ??????. 4. ?? ?? ?? : ?? ??? ????? ?? ??? ??? ??? ???? ?? ??? ??? ?? ?? ? ?? ??? ?????.

?? JavaScript? ???? ??? ??? ?? ??? ??? ??? ?? ??? ?? ??? ??? ???????. 1. HTML ???? ?? ???? ????? ??? ???? ????. 2. CSS ?? : ??? ?? ?? ??? ???? ?? ??, .dark-mode ???? ??? ?? ??? ???? var ()? ?? ??? ??? ?????. 3. JavaScript? ??? ???? ?? ???? ?? ??? ???? ?? LocalStorage? ????. 4. ??? ?? ? ? HTML ???? Dark-Mode ???? ???? ?? ??? LocalStorage? ?????. 5. ?? ?? ?? ??? 0.3 ? ?? ?????? ???? ???? ??????.

?, ?? CSS ?? ?? ??? JavaScript??? ??? HTML ? CSS? ?? ??? ? ????. 1. ?? UL? Li? ???? ?? ??? ??????. 2. ?? ?? ???? ???? ?????? ???? ??? ???? ???; 3. ?? ?? : ?? Li? ???, ?? ??? ??? ???? ?????. ??; 4. ?? ??? ???? ??? : ??, ????????? : ???? ??; 5. ?? ?? ???? ??? ?? ????, ??? ????, ??? ? ?????? ???? ??? ????? ??? ???? ??? ? ????. ?? ???? ???? JavaScript ??? ???? ???? ??? ?????.

Flexbox ?? ???? ???? ?? ?? ????? ?? ? ? ????. ??? ???? ?? ??? ??? ?? (Min-Height : 100VH)? ??? ????. 2. Flex : 1 ?? ??? ?? ???? ? : Auto1frauto? ???? ??? ??? ??? ??? ???????. 3. ?? ?? ?? : ??? ????? ???? ??? ??? ??; 4. ?? ??? ??? ??? ??? ??????. ? ???? ??? ??? ???? ??? ???, ?? ?? ? ?? ????? ???? ?? ??? ? ?? ?????? ?? ?? ??? ????? ?????.
