3
results
for
-
I have added rust support to flags.gg and by that I mean you can now call flags.gg inside rust
but you can also turn flags on locally
use flags_rs::{Auth, Client}; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { // Initialize the client let client = Client::builder() .with_auth(Auth { project_id: "your-project-id".to_string(), agent_id: "your-agent-id".to_string(), environment_id: "your-environment-id".to_string(), }) .with_memory_cache() .build(); // Check if a flag is enabled let is_feature_enabled = client.is("my-feature").enabled().await; println!("Feature 'my-feature' is enabled: {}", is_feature_enabled); // List all flags let all_flags = client.list().await?; println!("All flags:"); for flag in all_flags { println!(" {} ({}): {}", flag.details.name, flag.details.id, flag.enabled); } Ok(()) }
flags CreatedThu, 15 May 2025 00:00:00 +0000 -
I have added Golang support to flags.gg and by that I mean you can now call flags.gg inside go
but you can also turn flags on locally
package main import ( "github.com/flags-gg/go-flags" "log" "os" ) func main() { flags := flags.NewClient(flags.WithAuth(flags.Auth{ ProjectID: "tester", AgentID: "tester", EnvironmentID: "tester", })) if flags.Is("test-flag").Enabled() { log.Println("test-flag enabled") } if flags.Is("test flag 2").Enabled() { log.Println("test flag 2 enabled") } _ = os.Setenv("FLAGS_TEST_FLAG_3", "true") if flags.Is("test flag 3").Enabled() { log.Println("test flag 3 enabled") } _ = os.Setenv("FLAGS_TEST_FLAG_4", "true") if flags.Is("test-flag-4").Enabled() { log.Println("test flag 4 enabled") } log.Println("flags enabled or disabled") }
flags CreatedSun, 30 Mar 2025 23:00:00 +0000 -
This is a feature flag system, I have been designing for a few months now,
it has a few nice features and works in React and NextJS
it will soft launch on Boxing Day 2024
Implemented features * NextJS clientside support * React support * multi project * multi agent * multi Environment * secret menus with custom keycombos * golang agent now supports local override of flags
Planned features * Flag promotion from dev to production * NextJS server support for reading if flag is enabled * RBAC support