Giter VIP home page Giter VIP logo

gotsql's Introduction

some of the stuff I do:

- Golang:
	- Decoupled design [interfaces / objects / factories]
	- Building generic solutions that are extremely fast & efficient
	- Debugging (Delve)

- K8s & Docker:
	- I can build fully functional production ready k8s environments on multi-VPS solutions.
	- the stack is: Taskfile, Docker, Kustomize, Helm, Kapp, Git and Go.
	- You can use any k8s cluster you want. Minikube. Kind. k3s. k0s. GKE. EKS. It doesn't matter. I use k0s.

- Testing:
	- Localstack for AWS for end to end testing
	- end to end / integration / unit tests
	
- Git:
	- Github actions
	- Trunk based development
	- Git flow development
	
- Terraform:
	- Creating module patterns for simplicity
	- Creating cloud infrastructure

- Cloud architecture:
	- Architectural diagrams [draw.io / plantuml]
	- Requirements elicitation / purpose gathering
	- User story writing and creation
	- Integration design

- AWS SDK:
	- Lambda [functions]
	- SNS [pub/sub]
	- SQS [queues/deadletter queues]
	- DynamoDB [key value database]
	- S3 [file storage / key value]
	- Kinesis [streams]

- Query languages: 
	- MSSQL / TSQL
	- PL/SQL
	- JSONATA
	
- Other:
	- Python:
		- Pandas
		- Numpy
		- Automation [with python anything is possible]
	- Soft skills [the most important skills - let's be honest here!]
	- Data analysis

gotsql's People

Contributors

tbal999 avatar

Watchers

 avatar  avatar

gotsql's Issues

Golang - convert Elem() of type time.Time into a string

In backendsql.go:
row 72 - 85

What I am trying to do:

  • I am trying to convert Elem() of type time.Time into a string formatted like "2008-02-28".

What is happening:
backendsql\backendsql.go:77:38: x.Index(ii).Elem().Format undefined (type reflect.Value has no field or method Format)

How do I access Elem() of type time.Time so that I can use Format method?
Or is this approach incorrect and there's another way to complete this?

Golang - convert Elem() of type time.Time into a string

Where is the problem:
backendsql package
row 103-106
and
row 125-128

What is the problem:
I am iterating through an interface and trying to convert a reflect.value.Elem() which has type 'time.Time' to a 'time.Time' type.

Error
when i do ELem().Interface().(time.Time)
it says: reflect.Value.Interface: cannot return value obtained from unexported field or method
and when I do Elem().Format() it says: type reflect.Value has no field or method Format
And when i try reflect.ValueOf(x.Index(ii).Elem()).Interface().(time.Time)
This provides a nil value - not the original concrete value of the time.Time value.

What I think is the issue
The original Elem() is of type 'time.Time' but reflect.Value documentation shows you can format them as .Bool() or Int() or Float().
And for structs, you can use .Interface() and then use that to convert it into a struct.

But I think that you can't use .Interface().(time.Time) because time is a struct with unexported fields/methods.
Is there a way around this? Or is this meant to be the case?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.