GO.MOD ??? ???? ??? ??????
GO?? ???? go.mod
??? ???? ???? ?????? go mod init
??? ??? ? ???? ?????. go.mod
???? ??? ??? ? ?? ??? ?? ????. ???? ???? ??? ??? ????.
-
?? ??? : ????? ?? ???? ???? ?????.
go get
GET ?? ?? ??? ??? ?? ?? ?? ???? ?? ? ? ????. ?? ??, ??v1.8.0
?github.com/gorilla/mux
???? ????? ??? ?????.<code>go get github.com/gorilla/mux@v1.8.0</code>
? ??? ??? ?????
go.mod
??? ???????.<code>require github.com/gorilla/mux v1.8.0</code>
- ?? ??? : ?? ???? ??????.
go build
,go test
??go list
??? ??? ?go.mod
??? ???? ?????. ??? ??? ?? ??? ???? ??require
??? ?????. -
?? ?? : GO? ??? ???? ?? SEMVER (Semver)? ?????. ??? ??, ?? ?? (??
>=
) ?? ?? ?? (~
??^
??)? ??? ? ????. ?? ??:<code>require ( github.com/gorilla/mux v1.8.0 github.com/gorilla/websocket v1.4.2 )</code>
-
?? ? ?? ?? :
replace
???? ???? ?? ?? ?? ?? ?? ??? ??? ? ????. ?? ??:<code>replace github.com/gorilla/mux v1.8.0 => github.com/myfork/mux v1.9.0</code>
exclude
???? ??? ?? ??? ???? ? ??? ? ????.<code>exclude github.com/gorilla/mux v1.7.0</code>
GO ??? ??? ????? ?? ??? ??????
??? ??? ????? ???? ?? ??? GO ????? ???? ? ?????. ?? ??? ??? ????.
- ??? ?? ?? :
go.mod
??? ?? ??? ??? ???? ???? ???? ??????. ??? ?? ???? ??? ? ????latest
??master
???? ????. - ????? ??? ???? : ?? ?? ? ??? ??? ??? ?? ?? ???? ?? ??? ??????. <code>go list -m -u all</code> ???? ????? ???? ??????? <code>go get -u</code> .
-
go mod tidy
?? : ???? ?? ???? ???? ?? ? ???? ???? ?? ????? ?? <code>go mod tidy</code> . ?????go.mod
??? ???? ???? ?? ??? ?????. - ?? ?? ??? : <code>go mod vendor</code> ???? ?? ??????
vendor
????? ??????. ?? ??? ?? ???? ??? ?????? ???? ???? ? ?? ? ? ????. - ?? ??? ??? ????? : ??? ?? ? ???? ???????. ?? ??? ??? ?? ??? ???? ????? ????? ? ??? ? ? ????.
- ????
replace
?exclude
?? :replace
??? ???? ?? ?? ??? ?????? ?? ??? ??????. ????? ??? ??? ??exclude
????? ??? ??? ? ???? ???????. - ?? ??? ?? : ???? ???? ? ? ???? ?? ??? ?? ??? ?????? ??? ????? ??? ???? ? ????? ???? ?????.
GO.MOD ??? ??? ???? ??? ???? ? ? ?????
go.mod
??? ??? ????? go get
??? ???? ?? ? ? ????. ??? ? ??? ??? ??? ????.
-
?? ??? ???? : ?? ???? ?? ??? ?? ?? ???? ??????? ??????.
<code>go get -u</code>
??? ??? ?????
go.mod
??? ???????. -
?? ??? ???? : ?? ???? ??????? ?? :
<code>go get -u <module_path></module_path></code>
?? ??,
github.com/gorilla/mux
??????? ??? ?????.<code>go get -u github.com/gorilla/mux</code>
-
?? ???? ???? : ?? ???? ???????
go get
??? ??? ??????.<code>go get github.com/gorilla/mux@v1.9.0</code>
-
???? ?? : ?????? ?? ???? ??? ??? ???? ??? ? ????.
<code>go list -m -u all</code>
? ??? ?? ???? ???? ? ? ??? ?????.
-
?? : ???? ?, <code>go mod tidy</code> ???? ???? ?? ???? ???? ?? ? ???? ??????.
<code>go mod tidy</code>
GO ?? ????? ?? ??? ??? ??????
????? ?? ??? ??? ??? ?? ??? ??? ?? GO ?? ???? ?? ??? ??? ? ????. ??? ??? ??? ??? ??? ??? ????.
- ?? ?? ?? (MVS) ???? ?? : GO? ??? ???? ?? ?? ??? ???? ?? ?? ??? ???? MVS ????? ?????. ??? ?? ??? ???? ?????.
-
???? ??? ?? : MVS? ??? ???? ???
go.mod
??? ?? ??? ??? ???? ??? ? ????. ?? ??:<code>require github.com/gorilla/mux v1.8.0</code>
?????
github.com/gorilla/mux
? ??v1.8.0
? ?????. -
replace
?? ?? : ??? ?? ??? ??? ???? ??replace
???? ???? ?? ?? ?? ?? ??? ??? ? ????. ?? ??:<code>replace github.com/gorilla/mux v1.8.0 => github.com/myfork/mux v1.9.0</code>
- ?? ???? ?????? . ??? ?? ????? ??? ?????.
go mod graph
???? ??? ??? ????? ??? ???? ??? ??????. ??? ???? ?? ???? ??????? ???? ? ?? ????. -
go mod why
:? ??? ?? ??? ????? ?? ? ??? ???? ? ??? ? ? ????. ??? ??? ??? ???? ???? ???? ? ?? ? ? ????.<code>go mod why github.com/gorilla/mux</code>
-
?? ?? ? ??? : ??? ???? ???? ???? ??? ????? ??? ???? ??????. ???:
<code>go mod vendor</code>
?? ?? ?? ? ???? ???? ????? ???? ???????.
? ??? ???? GO ?? ????? ?? ??? ????? ???? ??? ? ????.
? ??? GO.MOD ??? ???? ??? ??????? ?? ?????. ??? ??? 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)

??? ??











GO? ????? ????? ??? ????? ??????. ?? ??? ?? ?????. 1. ? ??? ?? : Linux ????? ?? ??? ?????? ??? ??? ? ????. 2. ?? ??? ??? ?? ???? ???? ?? ??? ????? ?? ??? ?? ?? ??? ?? ??? ? ? ????. 3. ?? ?? ???? ?? : ?? ????? ??? ??? ?? ??? ??? ???? ??????. 4. ??? ?? ??? : ??? ???? ????? ?? ?????? ? ???? ? ? ??? ??? ? ??? ?????. ??? ??? CLI ??, ???? ??? ? ?? ????? ????? ????? ????? ?? ??? ??? ???? ????? ???? ??? ?????.

goensuresmemorysafety? ?? MemolemanucameThrougatomaticgargarbagecollection, nopointerarithmetic, safeconcurrency, andruntimechecks.first, go'sgarbagecollectoricallyally reclaimsunusedmemory, ??, itdisallowspointe, itdisallowspointe ??

GO?? ?? ??? ???? MAKE ??? ?? ?? ?? ? ??????. ?? ??? ???? ??? ??? ???? ?? ? ???? ?? ? ?? ??? ???? ?? ? ???? ??? ??? ? ????. ?? ??, ch : = make (Chanint, 10)? ?? 10 ?? ?? ?? ??? ??? ?? ??? ????. ???? ?? ??? ??, ??? ???? ?? ???? ??? ???? ???? ?? ? ??? ??? ????? ?????. ??? ??? ?, ?? : 1. ?? ??? ??? ??? ?? ??? ??? ??? ?? ?????????. 2. ??? ??? ??? ??? ??? ???? ?? ???????. 3. ??? chanstruct {} ??? ?? ?? ? ? ????. ???? ?????? ??? ?, ??? ??? ?? ? ???? ?????.

GO? ??? ?????? ??????. C? ?? ??? ? ??? ??? ?? ??? ?? ??? ? ??? ???? ?? ?????. 1. ?? ? ???? ?? ???? Go? OS ???? ?? ? ????? ????? ??? ??, ??, ?? ??? ? ???? ?? ?????. OS.ReadFile? ???? ? ?? ??? ?? ??? ?????. ?? ???? ?? ?? ?? ??? ???? ? ?????. 2. ???? ?? ???? OS/EXEC ???? exec.command ??? ?? ??? ????, ??? ????, ?? ??? ????, ?? ? ?? ??? ?????? ?? ??, ??? ?? ? ?? ????? ??? ???? ????? ?? ? ? ????. 3. ???? ? ??? ???? Net ???? TCP/UDP ?????, DNS ?? ? ?? ??? ?????.

GO ???? ?? ??? ????? ?? ???? ????? ?? ? ???? ???? ??? ??? ???? ????????. ?? ???? ??? ?, ???? ? ??? ?? ??? ???? ?? ?? ? ? ????. 1. func (rrectangle) area () int? ?? ? ???? ???? rect.area ()? ?? ?? ??????. 2. ??? ?? ???? ?? func (r*???) setwidth (...)? ?? ??? ???? ???? ???? ?? ??? ???? ?????. 3. ??? ?? ? ?, ?? ??? ??? ?? ? ???, ?? ??? ?? ?? ?? ? ???. 4. Go? Getter/Setter? ??? ???? ??????.

GO?? ?????? ??? ???? ?? ??? ???? ?????. ?????? ??? ???? ???? ??? ??? ???? ?? ??? ?????? ???? ??????. ?? ??, speak () ???? ?? ? ??? ?????? ???? ???? ???? ?? ??? ???? ?? ? ? ????. ?????? ???? ??, ?? ?? ?? ?? ? ????? ?? ????? ???? ? ?????. ?????? ???? ????? ???? ???? ??? ??? ???? ??? ?? ??? ???? ?? ?????? ?????. ???? ?? ???? ??, ??, ?? ?????? ?? ???? ??? ? ?? ???? ?????. ?? ??, ?? ?? ??? ?? ??? ??? ???? ??? Anno? ??? ? ????.

Go Language?? ??? ??? ?? ??? ??? ? ?? ??? ?? ?????. 1.Strings.contains ()? ???? ?? ???? ???? ??? ??? ???? ?? ?? ???? ? ?????. 2.strings.index ()? ???? ?? ???? ???? ??? ?? ? ??? ???? ??? -1? ?????. 3.strings.replaceall ()? ?? ???? ?? ??? ?? ? ? ??? Strings.replace ()? ?? ?? ?? ?? ? ? ????. 4.Len () ??? ???? ??? ??? ?? ? ????? ?? ??? ?? ? ?? ??? ???? ?????? ???????. ??? ??? ?? ??? ???, ??? ?? ?? ? ??? ??? ?? ?????? ?????.

TheGoiopackageprovidesinterfaceslikeReaderandWritertohandleI/Ooperationsuniformlyacrosssources.1.io.Reader'sReadmethodenablesreadingfromvarioussourcessuchasfilesorHTTPresponses.2.io.Writer'sWritemethodfacilitateswritingtodestinationslikestandardoutpu
