Python, Prompt Engineering, Data Science — Build the Skills Employers Want Now
Learn Excel & Financial Modeling the Way Finance Teams Actually Use Them
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore runtime generated, typesafe, and declarative programming techniques in Go at this GopherCon 2017 talk. Discover how to reduce repetitive code by leveraging tags, reflection, and runtime function generation, allowing you to focus on algorithms rather than boilerplate. Learn about Proteus, a tool that implements a runtime generated, type-safe, and SQL-injection-proof DAO layer. Gain insights into JDBC, reflection for type and value discovery, integration with Go SQL libraries, code reuse strategies, and the use of struct tags for SQL templates. Understand how to create efficient, secure, and flexible database access objects in Go, enhancing your ability to write more maintainable and performant code.
Syllabus
Intro
JDBI: JAVA DAOS DONE BETTER
REQUIREMENTS
REFLECTION: FINDING YOUR TYPE
REFLECTION: FINDING YOUR VALUES
INTEGRATING WITH THE GO SQL LIBRARIES REUSE, DON'T REWRITE
RETURNING BACK VALUES EXECUTORS FIRST
FROM STRUCT TAGS TO SQL TEMPLATES
FROM SQL TEMPLATES TO QUERY USE ARGUMENTS TO FINALIZE THE QUERY WHEN INVOKED
PROTEUS FEATURES
Taught by
Gopher Academy