Lambda图层与Golang兼容吗?

Is it possible to use a Golang lambda with the new lambda layers feature from AWS?

I have been trying to find a solution to use layers with my Lambda function written in Go, but I have not been able to do so. I got it working with python lambda though. I feel like since the Go code is a compiled binary, it's not possible to use a layer import during runtime. If I have the code for the layer locally, the import gets compiled into the binary as well which defeats the purpose of using a layer.

Does anyone know or have any examples around of Lambda Layers using Golang?

Go dependencies are inside the compiled binary, thus you can't/don't need to use layers. The problem is solved at a language level. It doesn't have anything to do with the fact that it is compiled, C and C++ binaries still have dependencies.