Principiante
Go
Aprende Go de principio a fin. Comienza con paquetes, variables y flujo de control, luego profundiza en structs, interfaces, concurrencia, pruebas, servidores HTTP, bases de datos, genéricos, perfilado y despliegue de binarios reales en producción.
20 lecciones12.3h práctico11 idiomas
Empieza a aprender gratisGo curso20 lecciones, en orden
- 125 min
Hola, Go
Package mainImportFunc mainFmt.PrintlnGo run - 225 min
Variables y Tipos
Var declarationShort declaration :=IntFloat64StringBool+2 - 330 min
Flujo de control: if y for
IfElse ifElseFor loopFor as whileInfinite for+2 - 430 min
Funciones
Func keywordParametersReturn valuesMultiple return valuesNamed return valuesBlank identifier - 535 min
Slices y Maps
Slice literalAppendLenIndexingRangeMap literal+2 - 640 min
Pequeño proyecto final de CLI
Os.ArgsStrconv.AtoiError handling with if err != nilOs.ExitGo buildPutting it together - 735 min
Estructuras y Punteros
Struct definitionField accessZero values for structsPointer types& and * operatorsPointer receivers vs value receivers+1 - 835 min
Métodos e Interfaces
Method declarationReceiver typesPointer vs value receiversInterface definitionImplicit interface satisfactionSmall interfaces+1 - 935 min
Manejo de errores
Error interfaceFmt.Errorf with %wErrors.IsErrors.AsCustom error typesPanic vs error+1 - 1040 min
Goroutines y canales
The go keywordGoroutine lifetimeUnbuffered channelsBuffered channelsSend and receiveRange over channel+1 - 1145 min
Patrones de concurrencia
Select statementContext.Context for cancellationSync.WaitGroupSync.MutexWorker pool patternFan-out fan-in idea - 1240 min
Un recorrido por la biblioteca estándar
FmtStringsStrconvTimeOsBufio+1 - 1340 min
Pruebas y puntos de referencia
Go testTesting.TTable-driven testsT.Run subtestsTesting.B benchmarks_test.go file naming+1 - 1435 min
Módulos y estructura del proyecto
Go mod initGo.mod and go.sumImport pathsPackage vs moduleInternal/ folderCmd/ layout+1 - 1545 min
Servidores HTTP
Net/httpHttp.HandleFuncHttp.ServerJSON responsesRequest routingMiddleware via http.Handler wrapping+1 - 1645 min
Bases de datos con database/sql
Database/sql packageDriver importsSql.Open and sql.DB poolExec vs Query vs QueryRowPrepared statementsScanning rows+1 - 1735 min
Genéricos
Type parameters with [T any]ConstraintsComparableTilde approximation ~intGeneric Map and FilterWhen generics help, when they do not - 1840 min
Rendimiento y perfilado
Go test -benchPprof CPU and heap profilesEscape analysis with -gcflags=-mAvoiding unnecessary allocationsPreallocating slicesSync.Pool intuition - 1940 min
Patrones de diseño en Go
Functional options patternRepository patternDependency injection via interfacesContext propagation through call stacksConstructor functions - 2045 min
Despliegue y producción
CGO_ENABLED=0 static binariesCross-compile with GOOS and GOARCHGraceful shutdown with http.Server and signal.NotifyContextMinimal Dockerfile with scratch or distrolessReading config from environment variables
Aprende Go en tu idioma
Cada lección, examen y respuesta del tutor aparece en tu idioma. El tutor de IA responde en el idioma en que le hablas.
